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.

[Visual Basic]
Public Shared ReadOnly Break As OpCode
[C#]
public static readonly OpCode Break;
[C++]
public: static OpCode Break;
[JScript]
public static var Break : OpCode;

Remarks

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 constructor overload can use the break opcode:

  • ILGenerator.Emit(OpCode)

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OpCodes Class | OpCodes Members | System.Reflection.Emit Namespace

Show:
© 2014 Microsoft