3 ms·
> I don't see how you would "debug directly the rust code" I think the intention of OP is that you compile the same Rust code to a native x86 or ARM binary and
by flohofwoe 7y ago
> I don't see how you would "debug directly the rust code"
I think the intention of OP is that you compile the same Rust code to a native x86 or ARM binary and debug that. Most bugs are ISA-agnostic so that approach totally makes sense in many situations.
That's how I'm debugging my WASM code compiled from C/C++, and that also works automatically with IDE debuggers that don't know about WASM (like Xcode's or Visual Studio's).
- kodablah 7y agoWhile that can work with self-contained libs, quite often Rust WASM code uses wasm-bindgen/web-sys to talk to JS/DOM which makes in-browser debugging the only reasonable way.