Signals the Common Language Infrastructure (CLI) to inform the debugger that a break point has been tripped.
Assembly: mscorlib (in mscorlib.dll)
The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:
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:
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.