Partager via


ICorDebugModule2::SetJMCStatus Method

Sets the Just My Code (JMC) status of all methods of all the classes in this ICorDebugModule2 to the specified value, except those in the pTokens array, which it sets to the opposite value.

HRESULT SetJMCStatus (
    [in] BOOL                        bIsJustMyCode,
    [in] ULONG32                     cTokens,
    [in, size_is(cTokens)] mdToken   pTokens[]
);

Parameters

  • bIsJustMycode
    [in] Set to true if the code is to be debugged; otherwise, set to false.

  • cTokens
    [in] The size of the pTokens array.

  • pTokens
    [in] An array of mdToken values, each of which refers to a method that will have its JMC status set to !bIsJustMycode.

Remarks

The JMC status of each method that is specified in the pTokens array is set to the opposite of the bIsJustMycode value. The status of all other methods in this module is set to the bIsJustMycode value.

The SetJMCStatus method erases all previous JMC settings in this module.

The SetJMCStatus method returns an S_OK HRESULT if all functions were set successfully. It returns a CORDBG_E_FUNCTION_NOT_DEBUGGABLE HRESULT if some functions that are marked true are not debuggable.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Concepts

ICorDebugModule2 Interface

ICorDebugModule Interface