Chrome added support for DWARF based debugging information: https://twitter.com/ChromeDevTools/status/1192803818024710145 Unfortunately, they also mentioned that wasm-bindgen doesn't support updating debug info after transformation.
So my question is:
I commented here as well, but the gist of it is that DWARF isn't supported yet because we need to implement a DWARF transform inside of the walrus library (cc'ing @yurydelendik here as well)
How hard is it to add support for updating debug information?
Not trivial but possible, I started the https://github.com/yurydelendik/wtmaps-utils project to help with that.
Do you have it on your roadmap, and if so, when do you plan to implement it?
There are no specific schedule/date set for this feature.
@alexcrichton @yurydelendik Thank you for the information!
@alexcrichton @yurydelendik Any progress on this? AFAIU DWARF support is implemented in Binaryen https://github.com/WebAssembly/binaryen/issues/2400
Also curious to know what the status of this is -- seems like this basically depends on https://github.com/rustwasm/walrus/issues/67?
Unfortunately there is no status update on this, it's still not implemented. This would still largely all happen in the walrus crate, but I don't think work has been done to continue on updating DWARF
I think this issue should be reopened until resolved. I just wanted to file an issue for it. We are now about to start supporting DWARF for crash reporting and since so many projects that asked for WASM support are also using wasm-bindgen I would expect more people will ask for DWARF support.
This issue is more of a question than a tracker, but @mitsuhiko would you be up to open a new issue dedicated to "support dwarf in wasm-bindgen"?
I opened a new issue for it in #2389.
Most helpful comment
I think this issue should be reopened until resolved. I just wanted to file an issue for it. We are now about to start supporting DWARF for crash reporting and since so many projects that asked for WASM support are also using wasm-bindgen I would expect more people will ask for DWARF support.