Is there any documentation on how to attach LLDB/GDB to a raw wasm file (i.e. a handwritten one which was not produced by a compiler) and see the values of locals at different points in the execution?
AFAIK wasmtime currently requires dwarf debuginfo to exist in the wasm file to be able to emit any debuginfo itself. It doesn't generate any debuginfo for locals or the wasm stack.
Ugh. Is this something that would be interesting to add to Wasmtime?
I opened an issue for this over a year ago: https://github.com/bytecodealliance/wasmtime/issues/439 It is nice to have, but not a high priority for now.
Last updated: Dec 23 2024 at 12:05 UTC