22 releases

0.1.22 Aug 7, 2023
0.1.20 Jul 27, 2023
0.1.12 Mar 6, 2023
0.1.4 Dec 13, 2022
0.1.3 Nov 29, 2022

#415 in WebAssembly

Download history 5/week @ 2023-11-04 24/week @ 2023-11-11 12/week @ 2023-11-18 69/week @ 2023-11-25 47/week @ 2023-12-02 22/week @ 2023-12-09 44/week @ 2023-12-23 22/week @ 2023-12-30 1/week @ 2024-01-06 2/week @ 2024-01-13 2/week @ 2024-01-20 45/week @ 2024-01-27 64/week @ 2024-02-10 375/week @ 2024-02-17

484 downloads per month

MIT license



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.

Analyze a coredump

wasmgdb <source.wasm> <coredump.data>



Display 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 as .

x/<number> <hex-addr>

Examine the memory address at with length.

x/<number>s <hex-addr>

Examine the memory address at and prints as string of length.

find <expr>

Find the as bytes in memory.

Usage: find <start-addr>, <end-addr>, <expr> find <expr>

info types

List all defined types.

info locals

List local values (includes Wasm func arguments).

info symbol <funcidx>

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.


  • Member access: <object>-><member>
  • Cast: (<type>) <hex-addr>
  • String: "<string>"


~593K SLoC