다음을 통해 공유


ICorDebugCode::CreateBreakpoint Method

Creates a breakpoint in this code segment at the specified offset.

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

Parameters

  • offset
    [in] The offset at which to create the breakpoint.

  • ppBreakpoint
    [out] A pointer to the address of an ICorDebugFunctionBreakpoint object that represents the breakpoint.

Remarks

Before the breakpoint is active, it must be added to the process object.

If this code is Microsoft intermediate language (MSIL) code, and there is a just-in-time (JIT)-compiled, native version of the code, the breakpoint will be applied in the JIT-compiled code as well. (The same is true if the code is JIT-compiled later.)

Requirements

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

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Concepts

ICorDebugCode Interface