Condividi tramite


OpCodes.Break Field

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Shared ReadOnly Break As OpCode
public static readonly OpCode Break

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

  • ILGenerator.Emit(OpCode)

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.