ICorDebugCode 接口

更新:2010 年 9 月

表示 Microsoft 中间语言 (MSIL) 代码段或本机代码段。

方法

方法

说明

ICorDebugCode::CreateBreakpoint 方法

在指定的偏移量处创建断点。

ICorDebugCode::GetAddress 方法

获取此 ICorDebugCode 表示的代码段的相对虚拟地址 (RVA)。

ICorDebugCode::GetCode 方法

获取指定函数中为反汇编而格式化的所有代码。 此方法已被弃用;转而使用 ICorDebugCode2::GetCodeChunks

ICorDebugCode::GetEnCRemapSequencePoints 方法

未实现。

ICorDebugCode::GetFunction 方法

获取与此 ICorDebugCode 关联的 ICorDebugFunction

ICorDebugCode::GetILToNativeMapping 方法

获取一个由 COR_DEBUG_IL_TO_NATIVE_MAP 实例构成的数组,这些实例表示从 MSIL 偏移量到本机偏移量的映射。

ICorDebugCode::GetSize 方法

获取此 ICorDebugCode 表示的二进制代码的大小(以字节为单位)。

ICorDebugCode::GetVersionNumber 方法

获取从 1 开始的编号,该编号标识此 ICorDebugCode 表示的代码的版本。

ICorDebugCode::IsIL 方法

获取一个值,该值指示此 ICorDebugCode 是否是用 MSIL 编译的。

备注

ICorDebugCode 可以表示 MSIL 或本机代码。 一个 ICorDebugFunction 对象,表示 MSIL 代码可以关联零个或一个 ICorDebugCode 对象。 一个 ICorDebugFunction 对象,表示本机代码可以关联任意数目的 ICorDebugCode 对象。

注意注意

不支持对此接口进行远程调用(无论是跨计算机还是跨进程)。

要求

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

头文件: CorDebug.idl、CorDebug.h

**库:**CorGuids.lib

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

请参见

参考

ICorDebugCode2 接口

其他资源

调试接口

修订记录

Date

修订记录

原因

2010 年 9 月

阐明了 ICorDebugCode 和 ICorDebugFunction 之间的关系。

内容 Bug 修复