Doctrine Debug Helper
The Doctrine Debug Helper is a set of convenience functions that wrap
\Doctrine\Common\Util\Debug::dump(). Because lazy., (*1)
Installation
Use [Composer][3] to install Doctrine Debug Helper., (*2)
{
"require": {
"jeremykendall/doctrine-debug-helper": "*"
}
}
dc() and dcd()
dc() and dcd() wrap \Doctrine\Common\Util\Debug::dump(), but use custom
defaults. I much prefer a higher $maxDepth than 2 and I don't want the dump run
through html_entity_decode. Since the point of these function is less typing,
these functions provide the defaults that I prefer., (*3)
void dc($var, $maxDepth = 3, $stripTags = false), (*4)
Prints a dump of the public, protected and private properties of $var., (*5)
Uses custom defaults: $maxDepth defaults to 3 and $stripTags defaults to false., (*6)
void dcd($var, $maxDepth = 3, $stripTags = false), (*7)
Prints a dump of the public, protected and private properties of $var and dies., (*8)
Uses custom defaults: $maxDepth defaults to 3 and $stripTags defaults to false., (*9)
Recommendation
, (*10)
In my opinion, \Doctrine\Common\Util\Debug::dump() is best when Xdebug
is installed. You should be using Xdebug in development anyhow, so go
install it now. NOW., (*11)