You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot seem to get the release/profiling wasm to build with debug symbols. Using the profiling profile does not produe debug symbols in the wasm and this has been previously reported in #797. The solution to that is to add:
[package.metadata.wasm-pack.profile.release]
# previously had just ['-O4']wasm-opt = ['-O4', '-g']
this to the Cargo.toml, but this does not work in a workspace environment and is ignored if you put it in the Cargo.toml of the crate itself ("package.metadata.wasm-pack.profile.release.?.debug" is an unknown key and will be ignored. Please check your Cargo.toml.).
I've tried installing the master version of wasm-pack to be able to use the new --profile argument, and specify my own profile:
but again, this does not produce debug symbols. Adding --no-opt to the arguments does, but that kind of defeats the purpose. Unless I'm missing something obvious, it would be nice to be able to pass -g to wasm-opt some other way, whether it be the command line or in the Cargo.toml.
Is there any way to build in release with debug symbols in a workspace environment?
I cannot seem to get the release/profiling wasm to build with debug symbols. Using the
profiling
profile does not produe debug symbols in the wasm and this has been previously reported in #797. The solution to that is to add:this to the Cargo.toml, but this does not work in a workspace environment and is ignored if you put it in the Cargo.toml of the crate itself (
"package.metadata.wasm-pack.profile.release.?.debug" is an unknown key and will be ignored. Please check your Cargo.toml.
).I've tried installing the master version of wasm-pack to be able to use the new
--profile
argument, and specify my own profile:but again, this does not produce debug symbols. Adding
--no-opt
to the arguments does, but that kind of defeats the purpose. Unless I'm missing something obvious, it would be nice to be able to pass-g
to wasm-opt some other way, whether it be the command line or in the Cargo.toml.Is there any way to build in release with debug symbols in a workspace environment?
🌍 Your environment
wasm-pack version:
master (32e52ca)
rustc version:
rustc 1.81.0 (eeb90cda1 2024-09-04)
The text was updated successfully, but these errors were encountered: