Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ScriptManager.IsDebuggingEnabled Property

Gets a value that indicates whether the debug versions of client script libraries will be rendered.

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)
[BrowsableAttribute(false)]
public bool IsDebuggingEnabled { get; }

Property Value

Type: System.Boolean
true if the current request is executing in debug mode; otherwise, false.

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 to true. This overrides all other settings.

  • The ScriptMode property is set to Auto or to Inherit, and debugging is not enabled in the compilation section of the application-root Web.config file.

  • The ScriptMode property is set to Release.

    NoteNote

    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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.