Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DebuggableAttribute Constructor (Boolean, Boolean)

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)

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.

This constructor sets the properties IsJITTrackingEnabled and IsJITOptimizerDisabled.

An isJITTrackingEnabaled parameter value of true causes the runtime to track information important to the debugger during code generation; a value of false results in no tracking, but does not prevent debugging. This parameter has no effect in the .NET Framework version 2.0. In version 2.0, JIT tracking information, the Microsoft intermediate language (MSIL) offset to the native-code offset within a method, is always generated.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8
Show:
© 2015 Microsoft