Visual Studio – Prevent stopping debugging from closing Internet Explorer

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.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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.

Method 2

Use the Detach All option from the Debug menu.

Method 3

This is the way I do it:
Get the URL for your project, you may have to run it once to get the port number and to start up the webserver (if you are using the built in one).

Then open a browser session, and put your URL in.

IF you want/need to debug, then just do an attach to process under the debug menu, I have setup a shortcut/macro to do this step for me.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x