Re:Wazero: The zero dependency WebAssembly runtime for Go de...
by lazyresearcher on Tuesday May 17, 2022 @03:39AM
(#31407176)
What features exactly are you looking for? I have only used emscripten but you can compile debug builds and step through the code in the browser's inspector.
[ Parent
| on HN ]
Re:Wazero: The zero dependency WebAssembly runtime for Go de...
by brancz on Tuesday May 17, 2022 @05:55AM
(#31408164)
I don't know enough about wasm runtimes, but for example JIT runtimes like nodejs (or JVM via perf-map-agent [0]) allow writing out debug infos via the Linux Kernel JIT-Interface [1], which debuggers and profilers can then pick up to symbolize stack traces. Not saying that it has to be the Linux JIT perf-map interface, but it'd be nice if it's something implementors of the runtimes kept in mind (not implying that they're not, I just haven't read anything).
[0] https://github.com/jvm-profiling-tools/perf-map-agent
[1] https://github.com/torvalds/linux/blob/master/tools/perf/Doc...
Re:Wazero: The zero dependency WebAssembly runtime for Go de...
by miloignis on Tuesday May 17, 2022 @10:33AM
(#31411272)
That looks similar to how I profile my webassembly in wasmtime: https://docs.wasmtime.dev/examples-profiling-perf.html
, so that might be what you're looking for! It works pretty well.
Wasmtime also has this page on debugging with supported debuggers when the webassembly was compiled with debug information: https://docs.wasmtime.dev/examples-debugging.html