DebuggableAttribute 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 DebuggableAttribute 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| DebuggableAttribute(DebuggableAttribute+DebuggingModes) |
使用实时 (JIT) 编译器的指定调试模式初始化类的新实例 DebuggableAttribute 。 |
| DebuggableAttribute(Boolean, Boolean) |
使用实时 (JIT) 编译器的指定跟踪和优化选项初始化类的新实例 DebuggableAttribute 。 |
DebuggableAttribute(DebuggableAttribute+DebuggingModes)
- Source:
- DebuggableAttribute.cs
- Source:
- DebuggableAttribute.cs
- Source:
- DebuggableAttribute.cs
- Source:
- DebuggableAttribute.cs
- Source:
- DebuggableAttribute.cs
使用实时 (JIT) 编译器的指定调试模式初始化类的新实例 DebuggableAttribute 。
public:
DebuggableAttribute(System::Diagnostics::DebuggableAttribute::DebuggingModes modes);
public DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes modes);
new System.Diagnostics.DebuggableAttribute : System.Diagnostics.DebuggableAttribute.DebuggingModes -> System.Diagnostics.DebuggableAttribute
Public Sub New (modes As DebuggableAttribute.DebuggingModes)
参数
指定 JIT 编译器调试模式的值的 DebuggableAttribute.DebuggingModes 按位组合。
注解
DebuggableAttribute(DebuggableAttribute+DebuggingModes)使用modes参数值Default调用构造函数等效于调用DebuggableAttribute(Boolean, Boolean)具有isJITTrackingEnabled参数值的true构造函数。
适用于
DebuggableAttribute(Boolean, Boolean)
- Source:
- DebuggableAttribute.cs
- Source:
- DebuggableAttribute.cs
- Source:
- DebuggableAttribute.cs
- Source:
- DebuggableAttribute.cs
- Source:
- DebuggableAttribute.cs
使用实时 (JIT) 编译器的指定跟踪和优化选项初始化类的新实例 DebuggableAttribute 。
public:
DebuggableAttribute(bool isJITTrackingEnabled, bool isJITOptimizerDisabled);
public DebuggableAttribute(bool isJITTrackingEnabled, bool isJITOptimizerDisabled);
new System.Diagnostics.DebuggableAttribute : bool * bool -> System.Diagnostics.DebuggableAttribute
Public Sub New (isJITTrackingEnabled As Boolean, isJITOptimizerDisabled As Boolean)
参数
- isJITTrackingEnabled
- Boolean
true 若要启用调试,则为 ;否则,为 false.
- isJITOptimizerDisabled
- Boolean
true 若要禁用优化器执行,则为 ;否则,为 false.
注解
此构造函数设置属性 IsJITTrackingEnabled 和 IsJITOptimizerDisabled。
参数 isJITTrackingEnabled 值 true 会导致运行时在代码生成过程中跟踪对调试器非常重要的信息;结果值 false 不进行跟踪,但不阻止调试。 此参数在 .NET Framework 版本 2.0 中不起作用。 在版本 2.0 中,始终生成 JIT 跟踪信息,Microsoft中间语言 (MSIL) 偏移量到方法中的本机代码偏移量。
isJITOptimizerDisabled用于调试的true优化参数值;用于执行优化的值false。