Closed paul-hansen closed 2 months ago
CI failures should be fixed. Ran cargo insta review
to accept the changes to the config snapshots. Also rebased on latest main again just for good measure.
cargo test --features=full_tests
is now passing locally.
This all looks good, the last failure is a missing param in a windows test.
Summary
This adds a --wasm-debug flag which enables embedding DWARF debug info and rust's normal debug info to enable source maps in the Wasm file.
This can be used by browsers to show the file and line numbers in backtraces and use the Rust source in debuggers.
How to use
Currently I've only figured out how to use this with Chrome (lmk if anyone gets it working with Firefox!)
This blog post goes over most of these steps with more detail/pictures: https://developer.chrome.com/blog/wasm-debugging-2020/