Kint —— 强大、现代、零配置的PHP调试工具
文章目录
Kint是一个强大、现代、零配置的PHP调试工具。你还在使用var_dump()、print_r()和debug_backtrace()么?你该试试Kint。

安装使用
require '/kint/Kint.class.php';
########## DUMP VARIABLE ###########################
Kint::dump($GLOBALS, $_SERVER); // any number of parameters
// or simply use d() as a shorthand:
d($_SERVER);
########## DEBUG BACKTRACE #########################
Kint::trace();
// or via shorthand:
d(1);
########## TEXT-ONLY OUTPUT ########################
s($GLOBALS);
########## MISCELLANEOUS ###########################
// to disable all output
Kint::enabled(false);
// further calls, this one included, will not yield any output
d('Get off my lawn!'); // no effect
访问kint的项目页面了解文档、配置及高级用例。
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论