DebugHelper Methods |
The DebugHelper type exposes the following members.
Name | Description | |
---|---|---|
CanDebug |
Returns true if the given method can be included in debug
| |
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
| |
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.
| |
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
|