Skip to content

Conversation

maraf
Copy link
Member

@maraf maraf commented Jul 23, 2025

We should check both resources.pdb & resources.corePdb to determine if we have pdbs loaded.
Setting RunAOTCompilation=true results in moving all pdbs to corePdb 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

@maraf maraf added this to the 10.0.0 milestone Jul 23, 2025
@maraf maraf self-assigned this Jul 23, 2025
@maraf maraf added arch-wasm WebAssembly architecture area-Build-mono os-browser Browser variant of arch-wasm labels Jul 23, 2025
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

@maraf maraf requested a review from a team July 23, 2025 11:42
@maraf maraf marked this pull request as ready for review July 23, 2025 11:42
@Copilot Copilot AI review requested due to automatic review settings July 23, 2025 11:42
@maraf maraf requested review from lewing and pavelsavara as code owners July 23, 2025 11:42
Copy link
Contributor

@Copilot Copilot AI left a 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 and pdb resources
  • Adds proper merging support for coreAssembly and corePdb 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

@thaystg
Copy link
Member

thaystg commented Jul 23, 2025

We don't need any other change on BrowserDebugProxy? To read the pdb's correctly, since the PDB's will be in this corePdb?

@maraf
Copy link
Member Author

maraf commented Jul 24, 2025

BrowserDebugProxy

@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.

@maraf
Copy link
Member Author

maraf commented Jul 24, 2025

/ba-g Timeouts are not related

@maraf maraf merged commit d7f58ab into dotnet:main Jul 24, 2025
26 of 34 checks passed
@maraf
Copy link
Member Author

maraf commented Jul 24, 2025

/backport to release/10.0-preview7

@maraf maraf deleted the maraf/BrowserAotDebug branch July 24, 2025 14:51
Copy link
Contributor

Started backporting to release/10.0-preview7: https://github.com/dotnet/runtime/actions/runs/16500250253

@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Build-mono os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[net10] Blazor hosted webassembly "DEBUGGING IS NOT ENABLED"
4 participants