Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Debug symbols don't work in platform=web #1662

Open
BenLubar opened this issue Nov 29, 2024 · 0 comments
Open

Debug symbols don't work in platform=web #1662

BenLubar opened this issue Nov 29, 2024 · 0 comments
Labels
bug This has been identified as a bug platform:web
Milestone

Comments

@BenLubar
Copy link

Godot version

4.4.dev4.official.36e6207bb

godot-cpp version

5255034

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

  1. Export the gdextension and project in debug mode for web
  2. Open the web browser's debugging tools
  3. 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)
  4. 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)

@dsnopek dsnopek added bug This has been identified as a bug platform:web labels Dec 2, 2024
@dsnopek dsnopek added this to the 4.x milestone Jan 21, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug This has been identified as a bug platform:web
Projects
None yet
Development

No branches or pull requests

2 participants