Прочетете на английски Редактиране

Споделяне чрез


DebuggableAttribute Constructors

Definition

Initializes a new instance of the DebuggableAttribute class.

Overloads

DebuggableAttribute(DebuggableAttribute+DebuggingModes)

Initializes a new instance of the DebuggableAttribute class, using the specified debugging modes for the just-in-time (JIT) compiler.

DebuggableAttribute(Boolean, Boolean)

Initializes a new instance of the DebuggableAttribute class, using the specified tracking and optimization options for the just-in-time (JIT) compiler.

DebuggableAttribute(DebuggableAttribute+DebuggingModes)

Source:
DebuggableAttribute.cs
Source:
DebuggableAttribute.cs
Source:
DebuggableAttribute.cs

Initializes a new instance of the DebuggableAttribute class, using the specified debugging modes for the just-in-time (JIT) compiler.

C#
public DebuggableAttribute(System.Diagnostics.DebuggableAttribute.DebuggingModes modes);

Parameters

modes
DebuggableAttribute.DebuggingModes

A bitwise combination of the DebuggableAttribute.DebuggingModes values specifying the debugging mode for the JIT compiler.

Remarks

Calling the DebuggableAttribute(DebuggableAttribute+DebuggingModes) constructor with a modes parameter value of Default is equivalent to calling the DebuggableAttribute(Boolean, Boolean) constructor with an isJITTrackingEnabled parameter value of true.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0

DebuggableAttribute(Boolean, Boolean)

Source:
DebuggableAttribute.cs
Source:
DebuggableAttribute.cs
Source:
DebuggableAttribute.cs

Initializes a new instance of the DebuggableAttribute class, using the specified tracking and optimization options for the just-in-time (JIT) compiler.

C#
public DebuggableAttribute(bool isJITTrackingEnabled, bool isJITOptimizerDisabled);

Parameters

isJITTrackingEnabled
Boolean

true to enable debugging; otherwise, false.

isJITOptimizerDisabled
Boolean

true to disable the optimizer for execution; otherwise, false.

Remarks

This constructor sets the properties IsJITTrackingEnabled and IsJITOptimizerDisabled.

An isJITTrackingEnabled parameter value of true causes the runtime to track information important to the debugger during code generation; a value of false results in no tracking, but does not prevent debugging. This parameter has no effect in the .NET Framework version 2.0. In version 2.0, JIT tracking information, the Microsoft intermediate language (MSIL) offset to the native-code offset within a method, is always generated.

An isJITOptimizerDisabled parameter value of true optimizes for debugging; a value of false optimizes for execution.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1