DebuggableAttribute Class
Assembly: mscorlib (in mscorlib.dll)
[AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module, AllowMultiple=false)] [ComVisibleAttribute(true)] public sealed class DebuggableAttribute : Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module, AllowMultiple=false) */ /** @attribute ComVisibleAttribute(true) */ public final class DebuggableAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module, AllowMultiple=false) ComVisibleAttribute(true) public final class DebuggableAttribute extends Attribute
Not applicable.
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.
To use the DebuggableAttribute with dynamic assemblies using the Reflection Emit DefineDynamicModule methods, emit the DebuggableAttribute before calling the DefineDynamicModule methods to ensure that the settings are applied to the entire assembly.
For more information about using attributes, see Extending Metadata Using Attributes.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.