gdb for WebAssembly
cargo install wasmgdb
wasmgdb <coredump> <source.wasm>
bt
Display the stack trace.
f <#>
Selects a stack frame and display informations.
p <var-name>
Inspect the content of a variable.
Requires to select the frame with f
first.
p *<var-name>
Inspect the content of a variable after dereferencing it.
Requires to select the frame with f
first.
p/s <var-name>
Print the variable as string.
Requires to select the frame with f
first.