Skip to content

Allow keeping debug symbols in the generated wasm output in release builds #135

@jbg

Description

@jbg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    assetsBuild pipelines for specific asset typescliTrunk CLI applicationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions