ScriptManager.IsDebuggingEnabled 属性

定义

获取一个值,它指示是否将呈现客户端脚本库的调试版本。

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

属性值

Boolean

如果要在调试模式下执行当前请求,则为 true;否则为 false

属性

注解

当以下任一条件为 true 时,此属性 IsDebuggingEnabledfalse 返回:

  • 在配置文件的 部署 元素中,属性 retail 设置为 true。 这会替代所有其他设置。

  • 属性 ScriptMode 设置为 Auto 或设置为 Inherit,并且未在 compilation 应用程序根Web.config文件的部分中启用调试。

  • ScriptMode 属性设置为 Release

    备注

    debug @ Page 指令的属性不会影响已启用 Ajax 的 ASP.NET 应用程序。 该 ScriptManager 控件仅使用Web.config文件中的设置及其 IsDebuggingEnabled 属性 ScriptMode 来确定是否呈现调试脚本。

有关详细信息,请参阅 调试和跟踪 Ajax 应用程序概述

适用于

另请参阅