O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

DebuggableAttribute

Synopsis

This attribute contains two properties that indicate whether code can be debugged. IsJITOptimizerDisabled indicates whether optimization has been turned off, and IsJITTrackingEnabled indicates whether debug symbols have been placed in the code. This attribute is automatically applied by the compiler, with isJITTrackingEnabled set to false and isJITOptimizerDisabled set to true. Use the /debug command-line compiler switch to include debug symbols (isJITTrackingEnabled=true), and use /optimize to enable compile-time optimizations (isJITOptimizerDisabled=false).

public sealed class DebuggableAttribute : Attribute {
// Public Constructors
   public method DebuggableAttribute(
        bool isJITTrackingEnabled, bool isJITOptimizerDisabled);  
// Public Instance Properties
   public field bool IsJITOptimizerDisabled{get; } 
   public field bool IsJITTrackingEnabled{get; } 
}

Hierarchy

System.ObjectSystem.AttributeDebuggableAttribute

Valid On

Assembly, Module

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required