You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.0 KiB
1.0 KiB
Debugging WebAssembly
The following steps describe a common way to debug a WebAssembly module in Wasmtime:
-
Compile your WebAssembly with debug info enabled, usually
-g
; for example:clang foo.c -g -o foo.wasm
-
Run Wasmtime with the debug info enabled; this is
-g
from the CLI andConfig::debug_info(true)
in an embedding (e.g. see debugging in a Rust embedding) -
Use a supported debugger:
lldb -- wasmtime run -g foo.wasm
gdb --args wasmtime run -g foo.wasm
If you run into trouble, the following discussions might help: