yzh52521 / think-whoops
A debug service for ThinkPHP.
dev-master
2023-07-10 03:49 UTC
Requires
- php: >=7.1.0
- filp/whoops: >=2.4
- topthink/framework: >=6.0
This package is auto-updated.
Last update: 2024-12-10 06:42:41 UTC
README
让Whoops接管ThinkPHP6异常, Whoops提供stackbased错误捕获及超美观的错误
安装
$ composer require yzh52521/think-whoops
开启/关闭接管
开启 APP_DEBUG
才正常接管, 关闭默认转交ThinkPHP处理
config/whoops.php
<?php return [ 'enable' = true ];
打开编辑器
帮助您从异常堆栈跟踪中打开代码编辑器
支持编辑器 sublime,textmate,emacs,macvim,phpstorm,idea,vscode,atom,espresso
config/whoops.php
<?php return [ 'editor' = 'vscode' ];