-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[browser] Check also corePdb to see if we have any pdb to start debugging #117978
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
Conversation
Tagging subscribers to 'arch-wasm': @lewing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a debugging support detection issue in the browser runtime by checking both corePdb
and pdb
resources to determine if debugging symbols are available. The issue occurs when AOT compilation is enabled, which moves all PDB files to the corePdb
collection, causing the original check to fail.
Key changes:
- Updates debugging support check to consider both
corePdb
andpdb
resources - Adds proper merging support for
coreAssembly
andcorePdb
collections in the configuration merge function
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/mono/browser/runtime/startup.ts | Updates debugging condition to check both corePdb and pdb resources |
src/mono/browser/runtime/loader/config.ts | Adds merging logic for coreAssembly and corePdb collections |
We don't need any other change on BrowserDebugProxy? To read the pdb's correctly, since the PDB's will be in this corePdb? |
@thaystg We are passing loaded files from runtime to debugger in https://github.com/maraf/runtime/blob/maraf/BrowserAotDebug/src/mono/browser/runtime/assets.ts#L120, aren't we? If so, we are fine, since this array contains all of the loaded files, no matter where they came from. |
/ba-g Timeouts are not related |
/backport to release/10.0-preview7 |
Started backporting to release/10.0-preview7: https://github.com/dotnet/runtime/actions/runs/16500250253 |
We should check both
resources.pdb
&resources.corePdb
to determine if we have pdbs loaded.Setting
RunAOTCompilation=true
results in moving all pdbs tocorePdb
which uncovers this bug.Unfortunately, the
DEBUGGING IS NOT ENABLED
message is coming from debugger when the other side is connected, so we don't have an easy way to read it in tests.Fixes dotnet/aspnetcore#62335