IDebugExceptionEvent2::CanPassToDebuggee
Applies to: Visual Studio Visual 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
Determines whether or not the debug engine (DE) supports the option of passing this exception to the program being debugged when execution resumes.
Syntax
HRESULT CanPassToDebuggee(
void
);
int CanPassToDebuggee();
Return Value
Returns either S_OK
(the exception can be passed to the program) or S_FALSE
(the exception cannot be passed on).
Remarks
The DE must have a default action for passing to the debuggee. The IDE may receive the IDebugExceptionEvent2 event and call the Continue method without calling the CanPassToDebuggee
method. Therefore, the DE should have a default case for passing the exception on or not.