Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DebuggableAttribute Class

Modifies code generation for runtime just-in-time (JIT) debugging. This class cannot be inherited.

For a list of all members of this type, see DebuggableAttribute Members.


[Visual Basic]
<AttributeUsage(AttributeTargets.Assembly Or _
NotInheritable Public Class DebuggableAttribute
   Inherits Attribute
[AttributeUsage(AttributeTargets.Assembly |
public sealed class DebuggableAttribute : Attribute
[AttributeUsage(AttributeTargets::Assembly |
public __gc __sealed class DebuggableAttribute : public Attribute
   AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module)
class DebuggableAttribute extends Attribute

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.


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.

For more information about using attributes, see Extending Metadata Using Attributes.


Namespace: System.Diagnostics

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

DebuggableAttribute Members | System.Diagnostics Namespace

© 2017 Microsoft