| Crates.io | wasmgdb |
| lib.rs | wasmgdb |
| version | 0.2.2 |
| created_at | 2022-11-15 09:43:57.295999+00 |
| updated_at | 2024-12-31 13:40:56.233383+00 |
| description | gdb for WebAssembly |
| homepage | |
| repository | https://github.com/xtuc/wasm-coredump/tree/main/bin/wasmgdb |
| max_upload_size | |
| id | 715559 |
| size | 133,735 |
Think gdb for WebAssembly
cargo install wasmgdb
Use wasm-coredump-rewriter to transform your module and, once WebAssembly traps, collect the WebAssembly memory and analyze the coredump.
wasmgdb <source.wasm> <coredump.data>
btDisplay the stack trace.
f <#>Selects a stack frame and display informations.
p <expr>Inspect the content of a variable.
Requires to select the frame with f first.
p *<expr>Inspect the content of a variable after dereferencing it.
Requires to select the frame with f first.
p/s <expr>Print the variable as string.
Requires to select the frame with f first.
p (<type>) <expr>Print the content of
x/<number> <hex-addr>Examine the memory address at
x/<number>s <hex-addr>Examine the memory address at
find <expr>Find the
Usage:
find <start-addr>, <end-addr>, <expr>
find <expr>
info typesList all defined types.
info localsList local values (includes Wasm func arguments).
info symbol <funcidx>Get informations about the function at the given index.
info importsList WebAssembly module's imported functions from the host.
info functionsList all defined functions.
info globalsList globals.
info processInformation about the process.
<object>-><member>(<type>) <hex-addr>"<string>"