Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"detach all" vs "stop debugging"

When using the "Attach To Process" feature in Visual Studio 2008, what is the difference between "detach all" and "stop debugging"?

like image 224
JoelFan Avatar asked Jun 29 '09 18:06

JoelFan


People also ask

What does stop debugging do?

Stop Debugging terminates the process you are debugging if the program was launched from Visual Studio.

How do you stop browser closing automatically when you stop debugging on VS 2022?

From there, locate Web Projects from the Projects and Solutions navigation tree. Now untick the option box that says "Stop debugger when browser window is closed, close browser window when debugger stops."

How do I stop a debugging session?

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

How do I stop Visual Studio from opening my browser?

Go to Project Properties > Debug > Uncheck "Launch Browser" > Save. Save this answer.


2 Answers

"Detach All" will leave the process running "Stop Debugging" will (typically) kill local processes. It should be noted that they pretty much work the same if you are using remote debugging.

Detach Debugger...

"Detaching from a process does not terminate the process. The process continues running on its host computer even though it is no longer attached to the debugger." -MSDN

Stop Debugging...

"Stop Debugging terminates the process you are debugging if the program was launched from Visual Studio. If you attached to the process, instead of launching it from Visual Studio, the process continues running. If you want to terminate attached processes, you can terminate a single process from the Processes window or terminate all attached process with the Terminate All command." - MSDN

like image 191
Matthew Whited Avatar answered Oct 23 '22 20:10

Matthew Whited


If you choose detach all even when you stop the debugging from VS2008 process will still run. If you do not, if you stop debugging from VS2008 it will stop execution of process you attached to.

like image 1
grobartn Avatar answered Oct 23 '22 21:10

grobartn