Visual-studio – Visual Studio – Prevent stopping debugging from closing Internet Explorer

asp.netvisual studio

Under visual studio if you run a web project by pressing the Go button on the Debugging toolbar, then stop it by pressing the Stop button on the debugging toolbar, Internet Explorer is opened and closed by the IDE.

Is there a way to prevent the IDE from closing Internet Explorer when stopping debugging? I want to do this to allow myself to refer to the content of the pages in IE while editing my code.

Best Answer

I find that running it once without debugging is the way to go. First time, hit CTRL + F5 (starts web without debugging). This opens your browser and starts the web server for you.

Later on, you could debug and it'll use your same browser window, but hitting stop won't cause the window to close.