Stream: general

Topic: wasmtime-debugging


view this post on Zulip Carlo Kok (Mar 31 2021 at 10:55):

Does wasmtime offer any debugging facilities? Specfically, I'm using the Chrome debugger now but it's fragile and buggy, I'd rather have a proper debugger and run the WASM bits out of process.

view this post on Zulip bjorn3 (Mar 31 2021 at 10:58):

Yes. If you pass -g wasmtime will generate native debuginfo from the embedded wasm debuginfo and register it to the native debugger (gdb or lldb).

view this post on Zulip Till Schneidereit (Mar 31 2021 at 10:59):

and if you're embedding wasmtime, you can make enable debugging via the embedding API, in Rust and using the C API

view this post on Zulip Carlo Kok (Mar 31 2021 at 11:00):

Thanks.

view this post on Zulip Carlo Kok (Mar 31 2021 at 11:01):

Reminds me, how do you guys generally deal with Browsers being massively behind, feature wise compared to cranelift's wasm support?

view this post on Zulip Carlo Kok (Mar 31 2021 at 11:02):

(Things like EH, Interface types etc)


Last updated: Dec 23 2024 at 12:05 UTC