Add IdeSession-based browser debugging for Blazor WASM#17559
Draft
javiercn wants to merge 1 commit into
Draft
Conversation
Implement 'Debug in Browser' command for Blazor WebAssembly apps using the DCP IdeSession resource model (microsoft/dcp#169): - BrowserDebugAnnotation: marks resources as browser-debuggable - IdeSession DCP resource: models debug sessions with lifecycle states - BrowserDebugLaunchConfiguration: launch config for browser-debug type - IDcpExecutor/DcpExecutor: CreateIdeSessionAsync + StartIdeSessionAsync - ExecutableCreator: creates IdeSession at startup, handles 404 gracefully when DCP does not yet support IdeSession - ApplicationOrchestrator: LaunchBrowserDebugSessionAsync coordinator - BlazorGatewayExtensions: annotation + command for standalone WASM - BlazorHostedExtensions: auto-registers debug command in EnsureEnvironmentCallback (triggered by ProxyBlazorService/ProxyBlazorTelemetry) - Command visibility gated on IDE connection (DEBUG_SESSION_PORT) - Suppress CS0436 in Aspire.Hosting.Blazor (pre-existing StringComparers conflict) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 17559Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 17559" |
Contributor
|
Re-running the failed jobs in the CI workflow for this pull request because 1 job was identified as retry-safe transient failures in the CI run attempt.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Debug in Browser command for Blazor WebAssembly projects (both standalone gateway and hosted models). When clicked, Aspire signals DCP to start an IDE debug session via the IDE execution protocol.
Key changes:
Depends on:
This is a prototype/spike — not ready for review.