DebuggableAttribute 构造函数

定义

初始化 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)

参数

modes
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.

注解

此构造函数设置属性 IsJITTrackingEnabledIsJITOptimizerDisabled

参数 isJITTrackingEnabledtrue 会导致运行时在代码生成过程中跟踪对调试器非常重要的信息;结果值 false 不进行跟踪,但不阻止调试。 此参数在 .NET Framework 版本 2.0 中不起作用。 在版本 2.0 中,始终生成 JIT 跟踪信息,Microsoft中间语言 (MSIL) 偏移量到方法中的本机代码偏移量。

isJITOptimizerDisabled用于调试的true优化参数值;用于执行优化的值false

适用于