Skip to content

[wasm][debugger] Catch another unhandled exception in .js file after catching First Chance Exception #76101

Closed

Description

@thaystg

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)

Activity

  1. added this to the 8.0.0 milestone on Sep 23, 2022
  2. self-assigned this
    on Sep 23, 2022
  3. thaystg commented on Aug 2, 2023

    @thaystg
    MemberAuthor

    Fixed #89741

  4. ghost locked as resolved and limited conversation to collaborators on Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Debugger-mono

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions