Sitecore 5.0 API

State.DebugMode Property

Gets or sets a boolean that indicates if Sitecore is in debug mode.

[Visual Basic]
Public Shared Property DebugMode As Boolean
[C#]
public static bool DebugMode {get; set;}

Property Value

True, if Sitecore is in debug mode, otherwise false.

Remarks

DebugMode is the global controller of all debug activities. It controls such tools as Profiling, Trace, Rendering Borders and Rendering Info. Only if DebugMode is true will these tools be available.

The DebugMode flag also adds further information on the Debug tab in the content area.

The DebugMode flag can be enabled by specifying the "sc_debug=1" argument on the query string. To disable it, specify "sc_debug=0".

The scope of the value is sesion and it is stored in the Session variable "SC_DEBUGMODE".

See Also

State Class | Sitecore.Configuration Namespace | DrawRenderingBorders | Profiling | ShowRenderingInfo | Tracing