Skip to content

[area-blazor] When debugging the Blazor WebAssembly project, the breakpoint in Counter.razor file can't be hit #67507

Description

@EmilyFeng97

Regression info: Works well with .NET11 Preview 5 and previous P6

Install Steps

  1. Clean machine: Win11 x64 ENU 25H2
  2. Install VS Code Stable 1.126.0
  3. Install .Net 11.0 preview 6 SDK from https://release.dot.net/
  4. Add feed

Repro Steps

  1. Open a normal Command Prompt (do not run as administrator).
  2. Create a Blazor Web App - WebAssembly project and open it with vs code
    dotnet new blazor -int WebAssembly -o BlazorWASM
    cd BlazorWASM
    code .
    
  3. Open the BlazorWASM.Client/Pages/Counter.razor file, place a breakpoint at method @code{} (line 17)
  4. Navigate to the explorer, right click the *.csproj file > debug > Start New Instance
  5. After the project opens in the browser, click the "Click me" button in Counter page.

Note:

  1. This issue also repro on Blazor WebAssembly Standalone project.
  2. This does not repro with Blazor Web App - Server/Auto project
  3. This does not repro on .NET 10/9 projects
  4. This issue also repro when debugging with VS 18.9 Insider.

Actual:

Image

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions