Click or drag to resize
DebugHelper Class
Debug helping methods.
Inheritance Hierarchy
SystemObject
  CMS.BaseDebugHelper

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
public static class DebugHelper

The DebugHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCanDebug
Returns true if the given method can be included in debug
Public methodStatic memberClearLogs
Clears all logs within all debugs
Public methodStatic memberCreateLogTable
Creates new debug log table
Public methodStatic memberDisableDebug
Disables all debugs in the context of current request / thread
Public methodStatic memberDisableSchedulerDebug
Disables all debugs if DebugHelper.DebugScheduler is false, returns original settings which can be restored afterwards.
Public methodStatic memberEnsureDiskPath
Checks if all folders of the given path exist and if not, it creates them.
Public methodStatic memberEnsureDurationColumn
Ensures the Duration column in the datateble of Request log.
Public methodStatic memberFindRequestLogs
Finds the collection of request logs by the given request GUID
Public methodStatic memberGetContext
Gets the context for debug operation
Public methodStatic memberGetDebugBoolSetting(String)
Returns logical or of setting in web.config and setting.
Public methodStatic memberGetDebugBoolSetting(String, Boolean, Boolean)
Returns logical or of setting in web.config and setting.
Public methodStatic memberGetDebugCounter
Returns state of the debug counter.
Public methodStatic memberGetDebugLogLength(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).
Public methodStatic memberGetDebugLogLength(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).
Public methodStatic memberGetRequestUrl
Gets the request URL for the log purposes.
Public methodStatic memberGetSettings
Gets the settings for a given debug
Public methodStatic memberGetStack
Gets the current stack.
Public methodStatic memberCheckStackTrace(MethodInfo)
Checks if current stack trace is called from the given method
Public methodStatic memberCheckStackTrace(String)
Checks if current stack trace is called from the given method
Public methodStatic memberIsDebugEnabled
Returns true if the given debug is enabled
Public methodStatic memberRegisterDebug
Registers the debug to the debug helper
Public methodStatic memberRegisterLogs
Registers all request logs to the appropriate log lists.
Public methodStatic memberReleaseContext
Releases the last context.
Public methodStatic memberResetDebugSettings
Sets all the debug settings to null and causes them to be reloaded. This method is synchronized through all web farm servers.
Public methodStatic memberRestoreDebugSettings
Restores the debug settings from array of values.
Public methodStatic memberSetApplicationStartDebug
Returns true if the given debug is enabled
Public methodStatic memberSetContentPageDebug
Sets the debug flags for content page
Public methodStatic memberSetContext
Sets the debugging context.
Public methodStatic memberSetInitialDebug
Sets the initial debugging settings.
Public methodStatic memberSetSystemPageDebug
Sets the debug flags for system page
Public methodStatic memberWriteRequestLogs
Writes all request logs to the files
Top
Properties
  NameDescription
Public propertyStatic memberAnyDebugEnabled
Returns true if any debug is enabled.
Public propertyStatic memberAnyDebugLogToFileEnabled
Returns true if any debug has the logging to file enabled.
Public propertyStatic memberAnyLiveDebugEnabled
Returns true if any LiveDebug is enabled.
Public propertyStatic memberDebugAllForEverything
Debug all pages for everything.
Public propertyStatic memberDebugDisabled
Indicates whether all debugs are disabled.
Public propertyStatic memberDebugEverything
Debug Everything?
Public propertyStatic memberDebugEverythingEverywhere
Debug Everything everywhere?
Public propertyStatic memberDebugEverythingLive
Debug Everything live?
Public propertyStatic memberDebugImportExport
If false, pages with Import/Export are excluded from debugs.
Public propertyStatic memberDebugResources
If false, all the resources (GetResource a GetCSS) requests are ignored in debugging.
Public propertyStatic memberDebugScheduler
If false, scheduler tasks are ignored in debugs.
Public propertyStatic memberDebugStackForEverything
Track stack when debugging everything.
Public propertyStatic memberEverythingLogLength
Maximum length of the Everything log in number of requests.
Public propertyStatic memberLogEverythingToFile
Logs operations for everything?
Public propertyStatic memberLogFolder
File path, to which the debug logs operations
Public propertyStatic memberRegisteredDebugs
Returns the list of registered debugs
Public propertyStatic memberRegisteredDebugsCount
Number of registered debugs
Public propertyStatic memberShowDebugOnLiveSite
If true, the debug control are allowed in the live site view
Top
See Also