Skip to content

[wasm] Respect disabled debugger support in CoreCLR layout checks - #137496

Merged
pavelsavara merged 4 commits into
dotnet:mainfrom
pavelsavara:browser-coreclr-debugger-trimming
Nov 13, 2026
Merged

pavelsavara merged 4 commits into
dotnet:mainfrom
pavelsavara:browser-coreclr-debugger-trimming

Conversation

@pavelsavara

@pavelsavara pavelsavara commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Guard the CoreCLR function-evaluation layout checks with System.Diagnostics.Debugger.IsSupported. This prevents Debug/Checked native runtime startup from loading types removed by trimming when debugger support is disabled. Enabled-mode layout validation and debugger method registrations remain unchanged.

Validation

  • Browser/CoreCLR Debug build passed:
    .\build.cmd -bl -os browser -subset clr.runtime+clr.corelib+libs.native+host.native+libs.pretest -c Debug /p:RuntimeFlavor=CoreCLR /p:EnableHotReloadInRuntimeConfigDevFile=false
  • Local Chrome validation: trimmed Release applications started with debugger support both disabled and enabled (2 passed, 0 skipped).
  • No CI regression test is included: current WBT CI uses Release native packs, which omit these checks.

Note

This description was generated with Copilot.

Skip function-evaluation layout checks when the debugger feature is disabled,
without changing required debugger entrypoint registrations. Cover both
feature values with trimmed Browser startup and linked metadata assertions.

Co-authored-by: Copilot <[email protected]>
@azure-pipelines

azure-pipelines Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

Clarify the role of the mscorlib binder and layout checks in the context of managed and native code interactions.
Clarified the role of the mscorlib binder in mapping unmanaged to managed types and methods. Explained the differences between FCall and QCall techniques for calling into the CLR from managed code.
@pavelsavara pavelsavara added this to the 12.0.0 milestone Nov 13, 2026
@pavelsavara
pavelsavara marked this pull request as ready for review November 13, 2026 13:09
The fixture reproduced the issue locally with Debug native artifacts, but
Release native packs in WBT CI omit the failing layout checks. Keep the
native fix and the local red/green validation evidence.

Co-authored-by: Copilot <[email protected]>
@pavelsavara

Copy link
Copy Markdown
Member Author

/ba-g unrelated failures

@pavelsavara
pavelsavara merged commit 00178ee into dotnet:main Nov 13, 2026
100 of 102 checks passed
@pavelsavara
pavelsavara deleted the browser-coreclr-debugger-trimming branch November 13, 2026 16:35
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.

3 participants