IDebugEngine2::SetException

Note

This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. 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