Share via


DebuggableAttribute Class

[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
Public method DebuggableAttribute(DebuggableAttribute. . :: . .DebuggingModes) Initializes a new instance of the DebuggableAttribute class, using the specified debugging modes for the just-in-time (JIT) compiler.
Public method 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
Public property DebuggingFlags Gets the debugging modes for the attribute.
Public property IsJITOptimizerDisabled Gets a value that indicates whether the runtime optimizer is disabled.
Public property IsJITTrackingEnabled Gets a value that indicates whether the runtime will track information during code generation for the debugger.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.

See Also

Reference

System.Diagnostics Namespace