-
Notifications
You must be signed in to change notification settings - Fork 313
Description
We're currently looking at improving error reporting from some WebAssembly running in the browser, and we're having trouble getting trunk to produce a .wasm file that includes DWARF debug info. We want to be able to split off that debug info, store it, and use it to symbolicate any reported errors.
Setting debug = true in the release profile in Cargo.toml isn't sufficient because wasm-bindgen-cli strips the debug info when run in release mode unless --keep-debug is passed.
I guess eventually it would be cool if trunk could (optionally) split off the debug info itself and output it separately, but for now it would be sufficient if there was a way to get --keep-debug passed to wasm-bindgen-cli (somewhere around here) and then we can separately run wasm-split afterwards.