Properties

$traceCleanupCallback

$traceCleanupCallback : 

Type

$fileLinkFormat

$fileLinkFormat : 

Type

$hideSequentialKeys

$hideSequentialKeys : 

Type

$showClassConstants

$showClassConstants : 

Type

$keyFilterCallback

$keyFilterCallback : 

Type

$displayCalledFrom

$displayCalledFrom : 

Type

$charEncodings

$charEncodings : 

Type

$maxStrLength

$maxStrLength : 

Type

$appRootDirs

$appRootDirs : 

Type

$maxLevels

$maxLevels : 

Type

$enabled

$enabled : 

Type

$theme

$theme : 

Type

$expandedByDefault

$expandedByDefault : 

Type

$devel

$devel : 

Type

$_firstRun

$_firstRun : 

Type

$_statements

$_statements : 

Type

Methods

enabled()

enabled(null  $value = null) : void|boolean

getter/setter for the enabled parameter, called at the beginning of every public function as getter, also initializes the settings if te first time it's run.

Parameters

null $value

Returns

void|boolean

_init()

_init() 

trace()

trace(array  $trace = null) : void

Prints a debug backtrace

Parameters

array $trace

[OPTIONAL] you can pass your own trace, otherwise, debug_backtrace will be called

dump()

dump(mixed  $data = null) : void|string

dump information about variables

Parameters

mixed $data

Returns

void|string

shortenPath()

shortenPath(string  $file, integer  $line = null) : string

generic path display callback, can be configured in the settings

Parameters

string $file
integer $line

[OPTIONAL]

Returns

string

_dump()

_dump(  $var,   $name = '') 

Parameters

$var
$name

_showSource()

_showSource(string  $file, integer  $lineNumber, integer  $padding = 7) : boolean|string

trace helper, shows the place in code inline

Parameters

string $file

full path to file

integer $lineNumber

the line to display

integer $padding

surrounding lines to show besides the main one

Returns

boolean|string

_getPassedNames()

_getPassedNames(array  $trace) : \array(

returns parameter names that the function was passed, as well as any predefined symbols before function call (modifiers)

Parameters

array $trace

Returns

\array( —

$parameters, $modifier, $callee, $previousCaller )

_removeAllButCode()

_removeAllButCode(string  $source) : string

removes comments and zaps whitespace & <?php tags from php code, makes for easier further parsing

Parameters

string $source

Returns

string