How to stop debugging (or detach process) without stopping the process?
Visual StudioVisual Studio-2008DebuggingVisual Studio Problem Overview
I often use VS 2008 to debug a .NET C# component of an application. Sometimes, I want to quit debugging and continue running the application. Stop Debugging kills the process I was debugging.
How can I achieve my aim?
This is not a web app, it's a local process that runs managed and unmanaged code.
I found the "Detach All" option in the Debug menu, however it is disabled (grayed out).
Visual Studio Solutions
Solution 1 - Visual Studio
Open the Processes window (Debug->Windows->Processes), right-click the process, select "Detach Process".
Solution 2 - Visual Studio
You cannot detach a debugger from a process if you are debugging in mixed mode.
Make sure you are debugging either in managed or native mode while attaching to the process: either make sure "Enable native code debugging" or "Native Code" is unchecked in your project options, or start the program without debugging, choose "Attach to Process", and select only Managed or only Native.
Solution 3 - Visual Studio
Debug -> Detach All
Works great on my VS2008 and VS2010.