OpCodes.Break 字段

定义

向公共语言结构 (CLI) 发出信号以通知调试器已撞上了一个断点。Signals the Common Language Infrastructure (CLI) to inform the debugger that a break point has been tripped.

public: static initonly System::Reflection::Emit::OpCode Break;
public static readonly System.Reflection.Emit.OpCode Break;
 staticval mutable Break : System.Reflection.Emit.OpCode
Public Shared ReadOnly Break As OpCode 

字段值

注解

下表列出了指令的十六进制和 Microsoft 中间语言(MSIL)程序集格式以及简短的参考摘要: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
0101 breakbreak 通知调试器已达到断点。inform a debugger that a breakpoint has been reached.

此操作不会执行任何计算堆栈行为。No evaluation stack behaviors are performed by this operation.

@No__t-0 指令用于调试支持。The break instruction is for debugging support. 它向 CLI 发出信号,通知调试器中断点已被终止。It signals the CLI to inform the debugger that a break point has been tripped. 它对解释器状态没有其他影响。It has no other effect on the interpreter state.

@No__t 的指令大小越小,就可以使代码使用断点进行修补,并为周围代码生成最小干扰。The break instruction has the smallest possible instruction size enabling code patching with a break point and generating minimal disturbance to the surrounding code.

@No__t-0 指令可以捕获到调试器、不执行任何操作,或者引发安全异常。The break instruction can trap to a debugger, do nothing, or raise a security exception. 确切的行为是实现定义的。The exact behavior is implementation-defined.

以下 @no__t 0 方法重载可以使用 @no__t 操作码:The following Emit method overload can use the break opcode:

  • ILGenerator.Emit(OpCode)ILGenerator.Emit(OpCode)

适用于