class Debug (View source)

deprecated The Debug class is deprecated, please use symfony/var-dumper instead.

Static class containing most used debug methods.

Methods

static string
dump(mixed $var, integer $maxDepth = 2, boolean $stripTags = true, boolean $echo = true)

Prints a dump of the public, protected and private properties of $var.

static mixed
export(mixed $var, int $maxDepth)

No description

static string
toString(object $obj)

Returns a string representation of an object.

Details

static string dump(mixed $var, integer $maxDepth = 2, boolean $stripTags = true, boolean $echo = true)

Prints a dump of the public, protected and private properties of $var.

Parameters

mixed $var The variable to dump.
integer $maxDepth The maximum nesting level for object properties.
boolean $stripTags Whether output should strip HTML tags.
boolean $echo Send the dumped value to the output buffer

Return Value

string

static mixed export(mixed $var, int $maxDepth)

Parameters

mixed $var
int $maxDepth

Return Value

mixed

static string toString(object $obj)

Returns a string representation of an object.

Parameters

object $obj

Return Value

string