DebugHelper Class |
Namespace: CMS.Base
public static class DebugHelper
The DebugHelper type exposes the following members.
Name | Description | |
---|---|---|
AnyDebugEnabled |
Returns true if any debug is enabled.
| |
AnyDebugLogToFileEnabled |
Returns true if any debug has the logging to file enabled.
| |
AnyLiveDebugEnabled |
Returns true if any LiveDebug is enabled.
| |
DebugAllForEverything |
Debug all pages for everything.
| |
DebugDisabled |
Indicates whether all debugs are disabled.
| |
DebugEverything |
Debug Everything?
| |
DebugEverythingEverywhere |
Debug Everything everywhere?
| |
DebugEverythingLive |
Debug Everything live?
| |
DebugImportExport |
If false, pages with Import/Export are excluded from debugs.
| |
DebugResources |
If false, all the resources (GetResource a GetCSS) requests are ignored in debugging.
| |
DebugScheduler |
If false, scheduler tasks are ignored in debugs.
| |
DebugStackForEverything |
Track stack when debugging everything.
| |
EverythingLogLength |
Maximum length of the Everything log in number of requests.
| |
LogEverythingToFile |
Logs operations for everything?
| |
LogFolder |
File path, to which the debug logs operations
| |
MaxLogSize |
Maximum debug log size
| |
RegisteredDebugs |
Returns the list of registered debugs
| |
RegisteredDebugsCount |
Number of registered debugs
| |
ShowDebugOnLiveSite |
If true, the debug control are allowed in the live site view
|
Name | Description | |
---|---|---|
CanDebug |
Returns true if the given method can be included in debug
| |
ClearLogs |
Clears all logs within all debugs
| |
CreateLogTable |
Creates new debug log table
| |
DisableDebug |
Disables all debugs in the context of current request / thread
| |
DisableSchedulerDebug |
Disables all debugs if DebugHelper.DebugScheduler is false, returns original settings which can be restored afterwards.
| |
EnsureDiskPath |
Checks if all folders of the given path exist and if not, it creates them.
| |
EnsureDurationColumn |
Ensures the Duration column in the datateble of Request log.
| |
FindRequestLogs |
Finds the collection of request logs by the given request GUID
| |
GetContext |
Gets the context for debug operation
| |
GetDebugBoolSetting(String) |
Returns logical or of setting in web.config and setting.
| |
GetDebugBoolSetting(String, Boolean, Boolean) |
Returns logical or of setting in web.config and setting.
| |
GetDebugCounter |
Returns state of the debug counter.
| |
GetDebugLogLength(String) |
Returns log lenght of given debug (looks first to the settings, if the value is not defined, takes value from web.config, if not defined even in web.config, returns 10 as default value).
| |
GetDebugLogLength(String, Int32) |
Returns log lenght of given debug (looks first to the settings, if the value is not defined, takes value from web.config, if not defined even in web.config, returns 10 as default value).
| |
GetRequestUrl |
Gets the request URL for the log purposes.
| |
GetSettings |
Gets the settings for a given debug
| |
GetStack |
Gets the current stack.
| |
GetThreadStack |
Gets the current stack.
| |
CheckStackTrace(MethodInfo) |
Checks if current stack trace is called from the given method
| |
CheckStackTrace(String) |
Checks if current stack trace is called from the given method
| |
IsDebugEnabled |
Returns true if the given debug is enabled
| |
RegisterDebug |
Registers the debug to the debug helper
| |
RegisterLogs |
Registers all request logs to the appropriate log lists.
| |
ReleaseContext |
Releases the last context.
| |
ResetDebugSettings |
Sets all the debug settings to null and causes them to be reloaded. This method is synchronized through all web farm servers.
| |
RestoreDebugSettings |
Restores the debug settings from array of values.
| |
SetApplicationStartDebug |
Returns true if the given debug is enabled
| |
SetContentPageDebug |
Sets the debug flags for content page
| |
SetContext |
Sets the debugging context.
| |
SetInitialDebug |
Sets the initial debugging settings.
| |
SetSystemPageDebug |
Sets the debug flags for system page
| |
WriteRequestLogs |
Writes all request logs to the files
|