File: examples-rust-debugging.md

package info (click to toggle)
rust-wasmtime 29.0.1%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 54,908 kB
  • sloc: ansic: 4,110; sh: 582; javascript: 570; cpp: 321; asm: 175; ml: 96; makefile: 59
file content (15 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Debugging

You can also [browse this source code online][code] and clone the wasmtime
repository to run the example locally.

[code]: https://github.com/bytecodealliance/wasmtime/blob/main/examples/fib-debug/main.rs

This example shows off how to set up a module for dynamic runtime debugging via
a native debugger like GDB or LLDB.

## `main.rs`

```rust,ignore
{{#include ../examples/fib-debug/main.rs}}
```