Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Modifies code generation for runtime just-in-time (JIT) debugging. This class cannot be inherited.
Inheritance Hierarchy
System. . :: . .Object
System. . :: . .Attribute
System.Diagnostics..::..DebuggableAttribute
Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Assembly Or AttributeTargets.Module, AllowMultiple := False)> _
Public NotInheritable Class DebuggableAttribute _
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module, AllowMultiple = false)]
public sealed class DebuggableAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Assembly|AttributeTargets::Module, AllowMultiple = false)]
public ref class DebuggableAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module, AllowMultiple = false)>]
type DebuggableAttribute =
class
inherit Attribute
end
public final class DebuggableAttribute extends Attribute
The DebuggableAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
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. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
DebuggingFlags | Gets the debugging modes for the attribute. |
![]() |
IsJITOptimizerDisabled | Gets a value that indicates whether the runtime optimizer is disabled. |
![]() |
IsJITTrackingEnabled | Gets a value that indicates whether the runtime will track information during code generation for the debugger. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The DebuggableAttribute controls how the runtime treats code within the module. The runtime might track extra information about generated code, and it might disable certain optimizations based on the values contained within this attribute.
A debugger might choose to ignore the DebuggableAttribute settings when loading an assembly. However, attaching a debugger to a running program may prevent the debugger from changing the settings because they have already been applied.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.