ICorDebugILFrame

更新:2007 年 11 月

表示 Microsoft 中间语言 (MSIL) 代码的堆栈帧。

interface ICorDebugILFrame : ICorDebugFrame {
        
    typedef enum CorDebugMappingResult {
        MAPPING_PROLOG              = 0x1,
        MAPPING_EPILOG              = 0x2,
        MAPPING_NO_INFO             = 0x4,
        MAPPING_UNMAPPED_ADDRESS    = 0x8,
        MAPPING_EXACT               = 0x10,
        MAPPING_APPROXIMATE         = 0x20,
    } CorDebugMappingResult;
        
    HRESULT CanSetIP (
        [in] ULONG32                nOffset
    );
        
    HRESULT EnumerateArguments (
        [out] ICorDebugValueEnum    **ppValueEnum
    );
        
    HRESULT EnumerateLocalVariables( 
        [out] ICorDebugValueEnum    **ppValueEnum
    );
        
    HRESULT GetArgument (
        [in] DWORD                  dwIndex,
        [out] ICorDebugValue        **ppValue
    );
        
    HRESULT GetIP (
        [out] ULONG32               *pnOffset, 
        [out] CorDebugMappingResult *pMappingResult
    );
        
    HRESULT GetLocalVariable (
        [in] DWORD                  dwIndex,
        [out] ICorDebugValue        **ppValue
    );
        
    HRESULT GetStackDepth (
        [out] ULONG32               *pDepth
    );
        
    HRESULT GetStackValue (
        [in] DWORD                  dwIndex,
        [out] ICorDebugValue        **ppValue
    );
        
    HRESULT SetIP (
        [in] ULONG32                nOffset
    );
        
};

方法

方法

说明

ICorDebugILFrame::CanSetIP 方法

获取一个值,该值指示将指令指针设置为指向指定的偏移量位置是否安全。

ICorDebugILFrame::EnumerateArguments 方法

获取此帧中参数的枚举数。

ICorDebugILFrame::EnumerateLocalVariables 方法

获取此框架中局部变量的枚举数。

ICorDebugILFrame::GetArgument 方法

获取此 MSIL 堆栈帧中指定参数的值。

ICorDebugILFrame::GetIP 方法

获取指令指针的值和按位组合值,按位组合值描述如何获取指令指针的值。

ICorDebugILFrame::GetLocalVariable 方法

获取此 MSIL 堆栈帧中指定局部变量的值。

ICorDebugILFrame::GetStackDepth 方法

未实现。

ICorDebugILFrame::GetStackValue 方法

未实现。

ICorDebugILFrame::SetIP 方法

将指令指针设置为指向 MSIL 代码中的指定偏移量位置。

备注

ICorDebugILFrame 接口是专用的 ICorDebugFrame 接口。它用于 MSIL 代码帧或实时 (JIT) 编译的帧。JIT 编译的帧实现 ICorDebugILFrame 接口和 ICorDebugNativeFrame 接口。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorDebug.idl

**库:**CorGuids.lib

**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

ICorDebugFrame

ICorDebugILFrame2

其他资源

调试接口