ICorDebugFunction2::SetJMCStatus Method

Marks the function represented by this ICorDebugFunction2 for Just My Code stepping.

Syntax

HRESULT SetJMCStatus (  
    [in] BOOL   bIsJustMyCode  
);  

Parameters

bIsJustMyCode
[in] Set to true to mark the function as user code; otherwise, set to false.

Return Values

HRESULT Description
S_OK The function was successfully marked.
CORDBG_E_FUNCTION_NOT_DEBUGGABLE The function could not be marked as user code because it cannot be debugged.

Remarks

A Just My Code stepper will skip non-user code. User code must be a subset of debuggable code.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 1.0