Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to leave iisexpress running after stopping debugging in Visual Studio 2015 Update 2?

Previously this could be done by unchecking "Enable Edit and Continue" under (Project) Properties | Web | Debuggers. This checkbox is not there in Visual Studio 2015 Update 2. The same checkbox including four sub-options can be found in Options | Debugging | General, but unchecking this no longer resolves the issue.

like image 836
stovroz Avatar asked Apr 02 '16 13:04

stovroz


People also ask

How do I keep IIS Express running?

The best way to be able to exit Debug mode and leave iisexpress running is to start your application without the debugger in the first place, <ctrl + F5> and then attach the Debugger <ctrl + alt + p> to the iisexpress process, you'll see it on the list.

How do I exit debug mode in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

How do I stop a running project in Visual Studio?

Select the left margin or press F9 next to the line of code you would like to stop at. Run your code or hit Continue (F5) and your program will pause prior to execution at the location you marked.

How do I stop the IIS Express worker process?

Closing IIS Express By default Visual Studio places the IISExpress icon in your system tray at the lower right hand side of your screen, by the clock. You can right click it and choose exit. If you don't see the icon, try clicking the small arrow to view the full list of icons in the system tray.


2 Answers

Same problem here.

My workaround for now is to add "Detach all" shortcut on the toolbar instead of the "stop" button.

like image 60
Hagay Goshen Avatar answered Oct 09 '22 23:10

Hagay Goshen


The feature you're looking for is Start without debugging (menu: Debug -> Start Without Debugging or shortcut Ctrl+F5).

If you need to debug this process at any time you can use Attach to Process (menu: Debug -> Attach to Process... or shortcut CTRL+ALT+P). If you stop debugging on the attached process VS won't kill it.

PS. For me the bug you're referring to is a great enhancement (killing the debug process with stop debug command). Sometimes when issexpress hang (on SignalR for instance) and VS couldn't run a new debug session. It forced me to kill the process manually.

like image 41
andrew.fox Avatar answered Oct 09 '22 22:10

andrew.fox