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

后端 未结 3 2268

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 proc

相关标签:
3条回答
  • 2020-12-14 06:04

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

    0 讨论(0)
  • 2020-12-14 06:23

    Debug -> Detach All

    Works great on my VS2008 and VS2010.

    0 讨论(0)
  • 2020-12-14 06:26

    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.

    0 讨论(0)
提交回复
热议问题