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.
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.
To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.
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.
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.
Same problem here.
My workaround for now is to add "Detach all" shortcut on the toolbar instead of the "stop" button.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With