Skip to content

[Web] Fix separate_debug_symbols=yes and debug experience #105808

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamscott
Copy link
Member

@adamscott adamscott commented Apr 26, 2025

Note

I put the PR for 4.5 as an upcoming (big) PR will need the CreateTemplateZip() refactor

This PR actually makes separate_debug_symbols=yes work on the Web platform. Beforehand, the option was just ignored by the Web buildsystem.

It also edit the Wasm loading (the JS files edited) in a way to keep intact as much as possible the Response of the wasm file. This makes debugging Godot possible using the C/C++ DevTools Support (DWARF) Chrome extension.

Capture d’écran, le 2025-04-26 à 15 46 40

It would be actually nice to use if only it wouldn't crash on breakpoints due to Godot being a little bit too big for its taste. (I think it's fixable, though, but it's up to Google)

The PR is also refactoring a little bit the CreateTemplateZip() function in order to simplify it. 

@adamscott adamscott requested review from a team as code owners May 2, 2025 19:59
@Mickeon
Copy link
Member

Mickeon commented May 3, 2025

Did something go wrong during rebasing?

@adamscott
Copy link
Member Author

Did something go wrong during rebasing?

Ooops. Seems so.

@adamscott adamscott force-pushed the fix-web-separate-debug-symbols branch from d8057da to f2fce75 Compare May 13, 2025 17:57
@adamscott adamscott removed request for a team May 13, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants