WASM-TOOLS(1)
π NAME π
wasm-tools dump β a debugging utility that dumps information about a wasm binary. Yes bestie, it literally just tells you everything about your binary's whole deal. No cap. (You're reading the WASM-TOOLS(1) page, section 1, user commands π)
β¨ SYNOPSIS β¨
wasm-tools dump [OPTIONS] [INPUT]
π¦ DESCRIPTION π¦
Okay so this is the debugging utility that dumps information about a wasm binary. That's the whole vibe. π«Ά
And like, it's genuinely useful?? It's how you figure out precisely how each byte of a wasm binary is classified, or where particular constructs are at particular offsets. It's giving x-ray vision into your binary. Iconic behavior honestly. π₯
πΈ Arguments: πΈ
[INPUT]β the input file to process, bestie.
If you don't provide it, or if you pass -, then stdin gets read entirely and processed. Not me being flexible π
Heads up though: for most subcommands this input can either be a binary *.wasm file or a textual format *.wat file. Both slay.
π OPTIONS π
--generate-dwarf <lines|full>β optionally generate DWARF debugging information from WebAssembly text files. Ngl this one is a little magical. β¨
When the input to this command is a WebAssembly text file (like a *.wat), this option tells the text parser to insert DWARF debugging information so binary locations map back to the original source locations in the input *.wat file. So you can trace it all back to where it came from π§
But fr fr β this option has no effect if the INPUT argument is already a WebAssembly binary, or if the text format uses (module binary ...). Zero. Nada. It's just not that girl in those cases. π
-gβ shorthand for--generate-dwarf full. Just a cute lil shortcut so you don't have to type the whole thing π-o,--output <OUTPUT>β where to place output.
If you don't provide it, then stdout is used. Simple as that. π
-v,--verbose...β use verbose output. The morevs, the more tea you get:-vβ info-vvβ debug-vvvβ trace
Three whole levels of nosiness, we love to see it π
--color <COLOR>β configuration over whether terminal colors are used in output. Aesthetic control, basically. π
It supports one of auto|never|always|always-ansi. The default is to detect what to do based on the terminal environment, for example by using isatty.
[default: auto]
-h,--helpβ print help (see a summary with-h). Your bestie when you forget a flag, which, same. π
Okay real talk:--generate-dwarfdoing literally nothing on an already-binary input or on(module binary ...)isn't a bug, it's just how it is. Don't come for her. β
And that's the whole page, bestie! This was wasm-tools dump, version 1.239.0+ds, from August 2026 β go dump some binaries and have the best day, mwah ππΈπ
π¦ where this page comes from
- ubuntu stonking: wasm-tools 1.239.0+ds-10 Β· Apache-2.0 OR Apache-2.0 WITH LLVM exception OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms