異常顯示插件

v1.0.0
版本
2024-11-26
版本更新時間
45
安裝
2
star
簡介
ignition for webman
安裝
composer require yangweijie/webman-ignition
使用
- 將
config/exception.php
修改為以下內(nèi)容
<?php
use Yangweijie\WebmanIgnition\ExceptionHandle;
return [
''=>ExceptionHandle::class
];
配置
return [
'enable' => true, // 是否啟用
'show_error_msg'=>true, // 是否顯示異常信息,否用原生的異常渲染
'useDarkMode' => false, // 是否使用深色模式
'editor' => 'vscode', // 打開php文件的編輯器或ide
];
效果圖(可選)
點擊報錯文件行號可自動跳轉(zhuǎn)至出錯位置。