WHOOPS PHP调试库的使用
Whoops 适用于PHP环境的错误捕获与调试PHP库; whoops非常容易使用,它提供stackbased错误捕获及超美观的错误查看测试效果如下
安装步骤(composer安装)
安装完成之后在当前目录新建目录tools,tools目录里新建whoops.php,添加如下代码注册监控类require
__DIR__."/../vendor/autoload.php"; $whoops = new \Whoops\Run; $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler); $whoops->register();
然后就可以测试了,代码如下,测试效果图如上
whoops官网 http://filp.github.io/whoops/
相关推荐
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23