ScriptManager.IsDebuggingEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the debug versions of client script libraries will be rendered.
public:
property bool IsDebuggingEnabled { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsDebuggingEnabled { get; }
[<System.ComponentModel.Browsable(false)>]
member this.IsDebuggingEnabled : bool
Public ReadOnly Property IsDebuggingEnabled As Boolean
Property Value
true
if the current request is executing in debug mode; otherwise, false
.
- Attributes
Remarks
The IsDebuggingEnabled property returns false
when any one of the following conditions is true:
In the deployment element of the configuration file, the
retail
attribute is set totrue
. This overrides all other settings.The ScriptMode property is set to
Auto
or toInherit
, and debugging is not enabled in thecompilation
section of the application-root Web.config file.The ScriptMode property is set to
Release
.Note
The
debug
attribute of the @ Page directive does not affect Ajax-enabled ASP.NET applications. The ScriptManager control uses only the settings in the Web.config file and in its IsDebuggingEnabled and ScriptMode properties to determine whether to render debug scripts.
For more information, see Debugging and Tracing Ajax Applications Overview.