Muokkaa

Jaa


ICorDebugProcess8::EnableExceptionCallbacksOutsideOfMyCode Method

[Supported in the .NET Framework 4.6 and later versions]

Enables or disables certain types of ICorDebugManagedCallback2 exception callbacks.

Syntax

HRESULT EnableExceptionCallbacksOutsideOfMyCode(
   [in] BOOL enableExceptionsOutsideOfJMC
);

Parameters

enableExceptionsOutsideOfJMC [in]

Remarks

If the value of enableExceptionsOutsideOfJMC is false:

  • A DEBUG_EXCEPTION_FIRST_CHANCE exception will not result in a callback to the debugger.

  • A DEBUG_EXCEPTION_CATCH_HANDLER_FOUND exception will not result in a callback to the debugger if the exception never escapes into user code (that is, the path from an exception origin to an exception handler has no methods marked as JustMyCode, or JMC).

The default value of enableExceptionsOutsideOfJMC is true.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.6

See also