Jaa


IDebugProgram2::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 a debug engine from the program.

Syntax

HRESULT Detach( 
   void 
);
int Detach();

Return Value

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

Remarks

A detached program continues running, but it is no longer part of the debug session. No more program debug events are sent once the debug engine is detached.

See also