Azure DevOps work item: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1568011
Create a Blazor WASM Hosted Application:
dotnet new blazorwasm --hosted -o DebugBlazorApp
Open the project with VS.
Open DebugBlazorApp.Client/Pages/Index.razor and add the following content:
<button @onclick="ThrowException">Throw Exception</button>
@code {
private void ThrowException()
{
throw new Exception("Uncaught exception foo");
}
}
Run it on a non ENU OS.
Press F5 to start debugging and wait the webpage load completely.
Open the ‘Exception Settings’ pane in VS and select ‘JavaScript Exceptions > All Exceptions’.
Return to the browser and click the ‘Throw Exception’ button.
After catching the first chance exception, Press F5 to continue
Note:
it works well on ENU OS
Expected Result
After returning to the browser you should still see the An unhandled error has occurred
Actual Result
It will catch another unhandled exception in .js file (localhost:7214/_framework/dotnet.6.0.7.rys6jl4f53.js)