logocomune/debug
最新稳定版本:1.1.0
Composer 安装命令:
composer require logocomune/debug
包简介
simple debugging tool which prints human-readable information about a variable.
README 文档
README
This software is a simple debugging tool which prints human-readable information about a variable in HTML or pure text if the execution is from CLI mode.
Install
Install the latest version with composer require logocomune/debug
Alternatively, you can specify Debug as a dependency in your project’s existing composer.json file:
{
"require-dev": {
"logocomune/debug": "~1.1"
}
}
Usage
Basic example:
// debug() or d() just display a variable debug(['test'=>1,'d'=>'ok']); // debug and exit de(['test'=>1,'d'=>'ok']);
Available features:
// Disable debug \Logocomune\Debug\Debug::disable(); // Enable backtrace \Logocomune\Debug::backtrace(); // Disable backtrace \Logocomune\Debug::backtraceOff(); // Dump a variable with // print_r (default mode) \Logocomune\Debug::renderAsPrintR(); // var_dump \Logocomune\Debug::renderAsVarDump(); // var_export \Logocomune\Debug::renderAsVarExport(); // Symfony mechanism for exploring and dumping PHP variables \Logocomune\Debug::renderAsSymVarDump();
统计信息
- 总下载量: 90
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: Unknown
- 更新时间: 2015-05-11