class Debugger

Helper methods to debug PHP applications

Methods

static void
printVariable(mixed $variable)

Print human-readable information about a variable, wrapped in a <pre> block.

static never
printVariableAndDie(mixed $variable)

Print human-readable information about a variable, wrapped in a <pre> block, then halt execution.

static void
register()

Populate the global namespace with print_r() and dieprint_r() functions.

Details

at line 16
static void printVariable(mixed $variable)

Print human-readable information about a variable, wrapped in a <pre> block.

Parameters

mixed $variable

The variable to dump

Return Value

void

at line 28
static never printVariableAndDie(mixed $variable)

Print human-readable information about a variable, wrapped in a <pre> block, then halt execution.

Parameters

mixed $variable

The variable to dump

Return Value

never

at line 42
static void register()

Populate the global namespace with print_r() and dieprint_r() functions.

They're convenient aliases for the static methods of this class.

Return Value

void