Blazor WebAssembly Visual Studio Debugger Issues

Viewed 754

I've created a clean Blazor PWA project. Less than half the time when I try to run it with the debugger it doesn't launch properly. Half the time would actually be an improvement!

If try to launch with the debugger (F5 or Debug/Start Debugging), a new browser window is opened with "about:blank" as the URL. After maybe a minute "localhost:xxxx" shows as the URL.....but the "Loading..." message does not appear.

If I run without the debugger (Ctrl+F5 or Debug/Start Without Debugging), the PWA launches like it should. I can debug in the browser, but it isn't as smooth as when I can use Visual Studio.

Have tried using IIS Express and Project....Chrome, Edge, Edge Dev.

Am using Visual Studio v16.7.2. Have reproduced a few times with clean projects.

2 Answers

I don´t know exactly about PWAs, but I have the same problem with the standard Blazor WebAssembly when launching the web app with the debugger. What helps in my case is opening the browser console with Ctrl + Shift + I, this seems to kickstart the application.

I had the same issue and simple followed these steps and solved my issue

  1. Close all the browsers instance
  2. Delete file /.vs/{projectName}/config/debuggerConfiguration-{guid}.json
Related