DebuggableAttribute Constructor (Boolean, Boolean)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Initializes a new instance of the DebuggableAttribute class, using the specified tracking and optimization options for the just-in-time (JIT) compiler.

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

Syntax

'Declaration
Public Sub New ( _
    isJITTrackingEnabled As Boolean, _
    isJITOptimizerDisabled As Boolean _
)
public DebuggableAttribute(
    bool isJITTrackingEnabled,
    bool isJITOptimizerDisabled
)

Parameters

  • isJITTrackingEnabled
    Type: System.Boolean
    true to enable debugging; otherwise, false.
  • isJITOptimizerDisabled
    Type: System.Boolean
    true to disable the optimizer for execution; otherwise, false.

Remarks

An isJITTrackingEnabled parameter value of true causes the runtime to track information that is important to the debugger during code generation; a value of false results in no tracking, but does not prevent debugging. In the .NET Framework for Silverlight, JIT tracking information is always generated. This makes it possible for the debugger to match up a chain of Microsoft intermediate language (MSIL) with its machine code counterpart, and to track where local variables and function arguments are stored.

An isJITOptimizerDisabled parameter value of true optimizes for debugging; a value of false optimizes for execution.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.