detach one process from visual studio debugger

Visual StudioDebugging

Visual Studio Problem Overview


My question is somewhat similar to this "How to stop debugging (or detach process) without stopping the process?"

but i want to detach from one process.

for instance, I have a windows form app which i also attach to a windows service. I want to detach from only service (detach all will remove debugging from all executions and hence i won't be able to debug other application).

P.S: If possible please mention for visual studio 2008 and 2010.

Visual Studio Solutions


Solution 1 - Visual Studio

In the Processes window (Debug -> Windows -> Processes), right-click on the name of the process you want to detach, and on the shortcut menu, click Detach Process.

Solution 2 - Visual Studio

Just wanted to share that the shortcut key combo (in VS2013) is Ctrl+Alt+Z to bring up the Process window. The window will only pop up if there is at least one process attached.

Solution 3 - Visual Studio

If you have Visual Studio Express, there is no Processes window and I did not realized how to detach only one process.

Solution 4 - Visual Studio

If you are doing Mixed Mode debugging then neither the Debug > Detach All option nor detaching as mentioned in Centro's answer in this thread would work.

I see the Debug > Detach All option or Detach Process option in Debug > Windows > Processes dialog, when I am debugging in Native only or Managed only mode.

I have tested this on Visual Studio 2005 at least for now.

Reference: https://developercommunity.visualstudio.com/t/cannot-detach-from-process-the-debugdetach-all-opt/225642

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionUmerView Question on Stackoverflow
Solution 1 - Visual StudioCentroView Answer on Stackoverflow
Solution 2 - Visual StudioanishView Answer on Stackoverflow
Solution 3 - Visual StudiosebetovskyView Answer on Stackoverflow
Solution 4 - Visual StudioOzair KafrayView Answer on Stackoverflow