Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

detach one process from visual studio debugger

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.

like image 662
Umer Avatar asked May 11 '11 13:05

Umer


People also ask

How do I Unattach a debugger?

When debugging is complete, you can detach the debugger from the process by clicking Debug, and then clicking Stop Debugging in Visual Studio.

How do I remove debugger attached in VS code?

Just Delete the . vscode file from the directory you are working in and reopen the window the debugger will be gone.

How do I Debug multiple Processes in Visual Studio?

To change the startup project, in Solution Explorer, right-click a different project and select Set as StartUp Project. To start debugging a project from Solution Explorer without making it the startup project, right-click the project and select Debug > Start new instance or Step into new instance.

How do I turn off debugging in Visual Studio?

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

How do I debug multiple processes in Visual Studio?

Thank you. Visual Studio can debug a solution that has several processes. You can start and switch between processes, break, continue, and step through source, stop debugging, and end or detach from individual processes. When more than one project in a Visual Studio solution can run independently, you can select which project the debugger starts.

How do I detach a process in Visual Studio?

P.S: If possible please mention for visual studio 2008 and 2010. Show activity on this post. 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.

How do I detach a debugger from a process?

Open the Processes window (Debug->Windows->Processes), right-click the process, select "Detach Process". Show activity on this post. You cannot detach a debugger from a process if you are debugging in mixed mode.

What happens when you stop debugging in Visual Studio?

The process that was started in Visual Studio ends, while the process you attached to keeps running. To control the way that Stop Debugging affects an individual process, in the Processes window, right-click a process, and then select or clear the Detach when debugging stopped check box.


2 Answers

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.

like image 98
Centro Avatar answered Sep 24 '22 21:09

Centro


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.

like image 43
anish Avatar answered Sep 21 '22 21:09

anish