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: See .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Reference

ICorDebugCode Interface