Share via


IDebugProcess2::Detach

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Detaches the debugger from this process by detaching all of the programs in the process.

Syntax

HRESULT Detach( 
   void 
);
int Detach();

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

All programs and the process continue running, but are no longer part of the debug session. After the detach operation is complete, no more debug events for this process (and its programs) will be sent.

See also