Compartilhar via


IDebugEngine2::SetException

Note

This article applies to Visual Studio 2015. 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

Specifies how the debug engine (DE) should handle a given exception.

Syntax

HRESULT SetException(   
   EXCEPTION_INFO* pException  
);  
int SetException(   
   EXCEPTION_INFO[] pException  
);  

Parameters

pException
[in] An EXCEPTION_INFO structure that describes the exception and how to debug it.

Return Value

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

Remarks

A DE could be instructed to stop the program generating an exception at first chance, second chance, or not at all.

See Also

IDebugEngine2
EXCEPTION_INFO