Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop debugging (or detach process) without stopping the process?

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).

like image 770
Valentein Avatar asked Apr 19 '10 23:04

Valentein


People also ask

How do I stop debugging from running?

Just press Ctrl + F8. Alternatively you can click the related button next to the buttons controlling the debugger. This way the execution won't stop.

How do I stop debugging in CMD?

Click Stop Debugging on the Debug menu to stop the target's execution and end the target process and all its threads. This action enables you to start to debug a different target application. )

How do I stop a process in Visual Studio?

If you're building, try hitting CTRL-Break.


1 Answers

Open the Processes window (Debug->Windows->Processes), right-click the process, select "Detach Process".

like image 109
sbi Avatar answered Sep 25 '22 17:09

sbi