Open
Description
Godot version
4.4.dev4.official.36e6207bb
godot-cpp version
System information
tried in both Chrome Stable and Firefox-ESR; wasm was compiled on debian trixie and ubuntu noble
Issue description
Debug symbols do not appear to work for gdextensions in wasm+template_debug builds.
Even after adding -gdwarf-4 -g3
as the base godot SConstruct script does (https://github.com/godotengine/godot/blob/0eadbdb5d0709e4e557e52377fa075d3e2f0ad1f/SConstruct#L738) and ensuring a full rebuild and that the parameters made it to emcc and the linker, the browser still did not show symbols on the stack trace for a crash.
Steps to reproduce
- Export the gdextension and project in debug mode for web
- Open the web browser's debugging tools
- Pause execution during a call to the gdextension (or add a statement in the gdextension that crashes and tell the browser to pause on exceptions)
- Only the base engine wasm file will have symbols loaded
Minimal reproduction project
(if needed, I can provide one, but it works the same for any project)