Path

ez components / documentation / api reference / 2008.2.3 / debug


eZ Components 2008.2.3

Debug: ezcDebugVariableDumpTool

[ Tutorial ] [ Example stylesheet ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcDebugVariableDumpTool

Tool class to dump variables in a way similar to Xdebug. [source]
This tool class allows to dump variables similar to the way it is done by Xdebug (@link http://xdebug.org). The class is used in the ezcDebugPhpStacktraceIterator to unify the variable dumps with those generated by ezcDebugXdebugStacktraceIterator.

Method Summary

public static string dumpVariable( $arg, $maxData, $maxChildren, $maxDepth )
Returns the string representation of an variable.

Methods

dumpVariable

string dumpVariable( mixed $arg, int $maxData, int $maxChildren, int $maxDepth )
Returns the string representation of an variable.
Returns the dump of the given variable, respecting the $maxData and $maxChildren paramaters when arrays or objects are dumped. $maxDepth is the maximum recursion depth when dumping arrays and objects.

Parameters

Name Type Description
$arg mixed  
$maxData int  
$maxChildren int  
$maxDepth int  

Last updated: Mon, 11 May 2009