Unable to debug client-side Blazor WebAssembly hosted by ASP.NET Core inside a Docker container #22092
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
Visual Studio 2019 16.6, Blazor 3.2, Edge 81.0.416.77
Starting with a new Blazor WebAssembly App, checking the ASP.NET Core hosted option, verify the debugging steps on the MSDN Blazor WA debugging page work (ie. stick a breakpoint on line 14 of Counter.razor, run app, verify breakpoint is hit when the button is clicked). This works for me.
Right click the server project, Add -> Docker Support (Linux OS). Try the debug test again. Breakpoint is not hit. Is this because the remote debugging port isn't being exposed on the container?
When I hit Shift+Alt+D in my browser, it tries to load
http://127.0.0.1:37557/?url=https%3A%2F%2Flocalhost%3A32770%2F
but fails withERR_CONNECTION_REFUSED
in the browser. If I stop and restart debugging, hit Shift+Alt+D again, the port off 127.0.0.1 changes. Is there a setting I can apply to set that remote debugging port to a fixed value so I can expose it in the docker startup?The text was updated successfully, but these errors were encountered: