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.

System..::..Object
  System..::..Attribute
    System.Diagnostics..::..DebuggableAttribute

Namespace:  System.Diagnostics
Assembly:  mscorlib (in mscorlib.dll)

[AttributeUsageAttribute(AttributeTargets::Assembly|AttributeTargets::Module, AllowMultiple = false)]
public ref class DebuggableAttribute sealed : public Attribute

The DebuggableAttribute type exposes the following members.

  NameDescription
Public methodDebuggableAttribute(DebuggableAttribute..::..DebuggingModes)Initializes a new instance of the DebuggableAttribute class, using the specified debugging modes for the just-in-time (JIT) compiler.
Public methodDebuggableAttribute(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

  NameDescription
Public propertyDebuggingFlagsGets the debugging modes for the attribute.
Public propertyIsJITOptimizerDisabledGets a value that indicates whether the runtime optimizer is disabled.
Public propertyIsJITTrackingEnabledGets a value that indicates whether the runtime will track information during code generation for the debugger.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: