开发者

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

I often use VS 2008 to debug a .NET C# co开发者_如何转开发mponent 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).


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


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.


Debug -> Detach All

Works great on my VS2008 and VS2010.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜