-
Couldn't load subscription status.
- Fork 5.2k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Since upgrading Visual Studio to 17.8 custom debug configurations for Blazor WASM can't debug anymore by default. The default Debug profile works fine though. It also works as expected for ASP.Net Core Web App Razor.
Only for Blazor WASM in the output i get the message "DEBUGGING IS NOT ENABLED" and breakpoints are unbound.
When adding <DebuggerSupport Condition="'$(Configuration)' == 'DebugCustom'">true</DebuggerSupport> it works again.
Expected Behavior
Debugging should be enabled by default on debugging profiles.
Steps To Reproduce
- Fresh install Visual Studio
- Create a new Blazor WASM project
- Create a new DebugCustom profile based on the default Debug profile
- Debug in Chromium using the DebugCustom profile
Exceptions (if any)
When pressing shift+alt+d => Cannot start debugging, because the application was not compiled with debugging enabled.
.NET Version
.net7.0 and .net8.0