The Debug class is a simple utility for debugging variables, objects, arrays, etc by outputting information to the display.
Methods
Output the call stack from here, or the supplied one.
backtrace(array $trace) : string
Parameters
$trace
array
(optional) A backtrace to output
Returns
string
Formatted backtrace
Benchmark anything that is callable
benchmark(callable $callable, array $params) : array
Parameters
$callable
callable
$params
array
Returns
array
Prints a list of all currently declared classes.
classes()
Prints a list of all currently declared constants.
constants()
Quick and nice way to output a mixed variable to the browser
dump() : string
Prints a list of all currently loaded PHP extensions.
extensions()
Returns the debug lines from the specified file
file_lines(string $filepath, int $line_num, bool $highlight, int $padding) : array
Parameters
$filepath
string
the file path
$line_num
int
the line number
$highlight
bool
whether to use syntax highlighting or not
$padding
int
the amount of line padding
Returns
array
Prints a list of all currently declared functions.
functions()
Prints a list of all currently included (or required) files.
includes()
Quick and nice way to output a mixed variable to the browser
inspect() : string
Prints a list of all currently declared interfaces (PHP5 only).
interfaces()
Prints a list of the configuration settings read from <i>php.ini</i>
phpini()
Properties
$js_toggle_open
$js_toggle_open
$max_nesting_level
$max_nesting_level
$js_displayed
$js_displayed