Hey folks, im new to wasm/wasi so sorry if this is not the right place...
I wanted to play a little with it, debug the wasm bytecode and what not, so i set up gdb according to the docs and this is what i got:
image.png
It shows me the source code, which is fine, but what I want instead is that I want to inspect the wasm execution environment like see the wasm stack (if it has one), see the wasm bytecode instructions, etc, etc. Is this possible and if so how?
I don't think we have the dwarf right now to perform debugging like that unfortunately
We're working on a dwarf wasm debugger extension here: https://marketplace.visualstudio.com/items?itemName=ms-vscode.wasm-dwarf-debugging. But we note in the repo that Rust does not yet produce the proper dwarf due to https://github.com/rustwasm/wasm-bindgen/issues/2389 where I notice that this bug has been fixed!! ooooo I'll give that a try.
this may not yet drop into the bytecode, but it will....
I see, thanks!
if you try that, and it doesn't do what you'd like, let us know. tag me in the repo: @squillace.
Last updated: Nov 22 2024 at 16:03 UTC