Jaa


IDebugProcess3::GetDebugReason

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

This method returns the reason that the process was launched for debugging.

Syntax

HRESULT GetDebugReason(
   DEBUG_REASON* pReason
);
int GetDebugReason(
   out enum_DEBUG_REASON pReason
);

Parameters

pReason
[out] Returns a value from the DEBUG_REASON enumeration.

Return Value

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

See also