-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
Milestone
Description
Description
When launching a Blazor WebAssembly application through the .NET Aspire dashboard, there's currently no way to attach a debugger to the browser process. Unlike launching directly from Visual Studio or via dotnet run, the Aspire dashboard launches the app by opening a URL in the default browser without the necessary debugging flags.
Current Behavior
- Aspire dashboard provides a clickable link that opens the app in the default browser
- No debugging capabilities are available
- Developers must manually restart the browser with remote debugging flags to debug
Expected Behavior
The Aspire dashboard should provide an option to:
- Launch the Blazor WebAssembly app with debugging enabled
- Automatically configure the browser with appropriate debugging flags (e.g.,
--remote-debugging-port=9222) - Allow seamless debugging experience similar to F5 debugging in Visual Studio
Possible Solutions
- Add a "Debug" button next to the app URL in the dashboard that launches the browser with debugging enabled
- Provide launch settings integration that respects debugging configuration from launchSettings.json
- Automatic debugger attachment when the app is launched in debug mode via Aspire
Additional Context
This is particularly important for:
- Developers working with Aspire-orchestrated applications
- Teams debugging complex multi-project solutions
- Testing debugging scenarios in containerized environments
Related Issues
- Part of improving Aspire developer experience
- Related to general Blazor WebAssembly debugging workflows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components