Visual Studio 2022 Debugging

Visual Studio 2022 Debugging
Photo by Dawid Zawiła / Unsplash

There are several ways how to debug web applications. What I like or I am used to is not to close a web browser when I hit the button Stop debugging.

It takes 3 steps to change settings.

STEP 1

Go to "Tools > Options > Projects and Solutions > Web Projects" and deselect "Stop debugger when browser window is closed, close browser when debugging stops"

STEP 2

Go to "Tools > Options > Debugging" and deselect "Enable Edit and Continue and Hot Reload"

STEP 3

Select project > "Properties (or Alt + Enter) > Debug" and then click the link "Open debug launch profiles UI"

On a tab "IIS Express" find "Hosting Model" and select "Out of Process".

Finally do not forget to select "IIS Express" for debugging.