Debug
class Debug
Constants
DEBUG_FUNCTION_TEMPLATE |
|
DEBUG_FUNCTION_QUERY_PROFILER |
|
DEBUG_FUNCTION_TIME_PROFILER |
|
DEBUG_FUNCTION_QUERY_PROFILER_EXTENDED |
|
Properties
static string | $DEBUG_FUNCTION | ||
$enable_output | |||
$enable_debugging | |||
$forced_debugging | |||
$starttime | |||
$timer_section_start | |||
$timer_section_items | |||
$enabled_debug_functions | |||
$debug_functions | |||
static | $haltOnBreakpoint |
Methods
No description
Print/Return backtrace in readable format
Function for silent mode stream output directly to your Browser debug console
No description
Function to debug on live systems and die
Disable Debbuging
No description
No description
Output error page with debugging infos
Function to debug on live systems
Dumps all collected DEBUG data to a file located at /_file/debug/ and the Request ID as folder name
Enable a certain debugging feature
No description
Enables timing sections throughout the framework with query counts.
Stops a time section. Pass $type to sum multiple sections up, e.g. all sections of type 'query' will result in a sum
No description
No description
Returns an array containing the aggregated timer statistics
No description
Returns an array with the last step
No description
If called the execution will stop on the next setBreakpoint() call and prints the passed output
Checks wether a certain debug flag has been enabled (for sub-debug functions)
No description
Output data on page exit
No description
No description
Register an additional debug function for this call. Use is_enabled() to check wether the function is enabled or not
No description
Measuring run time of: {$function} [of {$object}] is called {$runs} times with given {$params}.
Sets a breakpoint where the execution will be halted in case of a prior haltOnNextBreakpoint() activation This can be used if you need to debug code which is being executed from various paths but you need to debug it in a specific run path. Simply call haltOnNextBreakpoint() and the next time the setBreakpoint() is reached your debug output will be shown
No description
No description
No description
No description
No description
Details
at line 49
__construct()
No description
at line 326
static string
backtrace(bool $return = false, int $limit = 50, bool $show_source = true, $trace = false)
Print/Return backtrace in readable format
at line 1391
static
console(array|object $values)
Function for silent mode stream output directly to your Browser debug console
at line 638
count(string $name)
No description
at line 1377
static
dd(array|object $values)
Function to debug on live systems and die
at line 488
disable()
Disable Debbuging
at line 151
disableDebugFunction($functionId)
No description
at line 113
disableDebugging()
No description
at line 180
static
display_error_page($message, $show_backtrace = true, $page_output = False, $error_details = false)
Output error page with debugging infos
at line 1349
static
dump(array|object $values)
Function to debug on live systems
at line 619
dumpDebugFile($level = 'low')
Dumps all collected DEBUG data to a file located at /_file/debug/ and the Request ID as folder name
at line 147
enableDebugFunction($functionId)
Enable a certain debugging feature
at line 109
enableDebugging()
No description
at line 159
enableTimeProfiling()
Enables timing sections throughout the framework with query counts.
at line 565
endSection($type)
Stops a time section. Pass $type to sum multiple sections up, e.g. all sections of type 'query' will result in a sum
at line 131
getLastQueryProfilerResult($returnOnlyQueries = true, $returnSingleLines = true)
No description
at line 588
getTimerSections()
No description
at line 601
array
getTimerStats()
Returns an array containing the aggregated timer statistics
at line 534
int
get_execution_time()
No description
at line 167
static array
get_previous_call(mixed $steps_back = 1)
Returns an array with the last step
at line 403
static
get_sourcecode_line($file, $line, $neighbor_line_count = 3, $show_source = true)
No description
at line 1418
static
haltOnNextBreakpoint()
If called the execution will stop on the next setBreakpoint() call and prints the passed output
at line 466
bool
is_enabled(string $p)
Checks wether a certain debug flag has been enabled (for sub-debug functions)
at line 509
log($message = false, $priority = LOG_DEBUG, $type = 'SYSTEM', $file = false, $line = false)
No description
at line 99
onAfterGetPage()
Output data on page exit
at line 455
static
print_a()
No description
at line 647
print_counts()
No description
at line 480
register_debug_function(string $id, string $caption)
Register an additional debug function for this call. Use is_enabled() to check wether the function is enabled or not
at line 592
resetSectionData()
No description
at line 1299
runtime(mixed $object = false, mixed $function = false, mixed $params = false, mixed $runs = 1)
Measuring run time of: {$function} [of {$object}] is called {$runs} times with given {$params}.
at line 1429
static
setBreakpoint(mixed $debug_output)
Sets a breakpoint where the execution will be halted in case of a prior haltOnNextBreakpoint() activation This can be used if you need to debug code which is being executed from various paths but you need to debug it in a specific run path. Simply call haltOnNextBreakpoint() and the next time the setBreakpoint() is reached your debug output will be shown
at line 660
string
show_debug_toolbar(bool $return = true)
No description
at line 117
startQueryProfiler($useExtendedProfile = false)
No description
at line 551
startSection(string $type = 'none')
No description
at line 521
start_timer(bool $force_reset = false)
No description
at line 126
stopQueryProfiler()
No description