ICorDebugCode::CreateBreakpoint 方法

在此代码段中的指定偏移量位置创建一个断点。

HRESULT CreateBreakpoint (
    [in] ULONG32     offset,
    [out] ICorDebugFunctionBreakpoint **ppBreakpoint
);

参数

  • offset
    [in] 要创建断点的偏移量位置。

  • ppBreakpoint
    [out] 一个指向 ICorDebugFunctionBreakpoint 对象地址的指针,该对象表示断点。

备注

必须先将断点添加到进程对象中,才能激活断点。

如果此代码是 Microsoft 中间语言 (MSIL) 代码,并且该代码具有实时 (JIT) 编译的本机版本,则也会在 JIT 编译的代码中应用断点 (如果以后对该代码进行 JIT 编译,情况也是如此)。

要求

**平台:**请参见 .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

请参见

参考

ICorDebugCode 接口