# wasmgdb > Think gdb for WebAssembly ## Install ``` cargo install wasmgdb ``` ## Usage Use [wasm-coredump-rewriter] to transform your module and, once WebAssembly traps, collect the WebAssembly memory and analyze the coredump. ### Analyze a coredump ``` wasmgdb ``` ### Commands #### `bt` Display the stack trace. #### `f <#>` Selects a stack frame and display informations. #### `p ` Inspect the content of a variable. Requires to select the frame with `f` first. #### `p *` Inspect the content of a variable after dereferencing it. Requires to select the frame with `f` first. #### `p/s ` Print the variable as string. Requires to select the frame with `f` first. #### `p () ` Print the content of as . #### `x/ ` Examine the memory address at with length. #### `x/s ` Examine the memory address at and prints as string of length. #### `find ` Find the as bytes in memory. Usage: `find , , ` `find ` #### `info types` List all defined types. #### `info locals` List local values (includes Wasm func arguments). #### `info symbol ` Get informations about the function at the given index. #### `info imports` List WebAssembly module's imported functions from the host. #### `info functions` List all defined functions. #### `info globals` List globals. #### `info process` Information about the process. ### Expr - Member access: `->` - Cast: `() ` - String: `""` [wasm-coredump-rewriter]: https://github.com/xtuc/wasm-coredump/tree/main/bin/rewriter