0

I cannot get the Blazor WebAssembly debugging to work when using Docker Compose orchestration in Visual Studio 2022

The reproduction is quite simple:

  1. Create a sample app using the Blazor Web App template
dotnet new blazor --interactivity WebAssembly
  1. Open the solution in Visual Studio, locate the Counter.razor component, and add a breakpoint to the IncrementCount() method

  2. Add Docker Compose support (Add -> Container orchestration support and select Docker Compose)

  3. Run the debug session and select the docker-compose as the startup project

  4. Navigate to /counter URL and click on the button

Result: Breakpoint is active, but never hit by the debugger

Is there any solution for this or workaround?

Note: When running locally in Kestrel, everything works as expected.

Environment:

Visual Studio 17.14.0
.NET version 9.0.300
Windows 11 (24H2)
Docker Desktop 4.41.2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.