jeremykendall/doctrine-debug-helper
Composer 安装命令:
composer require jeremykendall/doctrine-debug-helper
包简介
Convenience wrapper around \Doctrine\Common\Util\Debug::dump()
README 文档
README
The Doctrine Debug Helper is a set of convenience functions that wrap
\Doctrine\Common\Util\Debug::dump(). Because lazy.
Installation
Use Composer to install Doctrine Debug Helper.
{
"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.
void dc($var, $maxDepth = 3, $stripTags = false)
Prints a dump of the public, protected and private properties of $var.
Uses custom defaults: $maxDepth defaults to 3 and $stripTags defaults to false.
void dcd($var, $maxDepth = 3, $stripTags = false)
Prints a dump of the public, protected and private properties of $var and dies.
Uses custom defaults: $maxDepth defaults to 3 and $stripTags defaults to false.
Recommendation
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.
统计信息
- 总下载量: 134
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-08-28