* Add examples of linking and WASI This commit adds two example programs, one for linking two modules together and one for instantiating WASI. The linkage example additionally uses WASI to get some meaningful output at this time. cc #1272 * Add examples to the book as well * More links! * Ignore examples from rustdoc testsing * More example updates * More ignored
16 lines
401 B
Markdown
16 lines
401 B
Markdown
# 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/master/examples/fib-debug/main.c
|
|
|
|
This example shows off how to set up a module for dynamic runtime debugging via
|
|
a native debugger like GDB or LLDB.
|
|
|
|
## `main.c`
|
|
|
|
```c
|
|
{{#include ../examples/fib-debug/main.c}}
|
|
```
|