Export (0) Print
Expand All
Expand Minimize

OpCodes.Break Field

Signals the Common Language Infrastructure (CLI) to inform the debugger that a break point has been tripped.

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)

public static readonly OpCode Break
public static final OpCode Break
public static final var Break : OpCode

The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

Format

Assembly Format

Description

01

break

inform a debugger that a breakpoint has been reached.

No evaluation stack behaviors are performed by this operation.

The break instruction is for debugging support. It signals the CLI to inform the debugger that a break point has been tripped. It has no other effect on the interpreter state.

The break instruction has the smallest possible instruction size enabling code patching with a break point and generating minimal disturbance to the surrounding code.

The break instruction can trap to a debugger, do nothing, or raise a security exception. The exact behavior is implementation-defined.

The following Emit method overload can use the break opcode:

  • ILGenerator.Emit(OpCode)

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft