We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01d277f commit f3de7e8Copy full SHA for f3de7e8
1 file changed
src/Runner.php
@@ -4,6 +4,7 @@
4
5
use think\App;
6
use think\facade\Request;
7
+use think\facade\Env;
8
use Whoops\Handler\PrettyPageHandler;
9
use Whoops\Run;
10
@@ -44,10 +45,16 @@ public function handleException($exception)
44
45
'Port' => Request::port(),
46
'Host' => Request::host(),
47
]);
48
+
49
+ // 环境变量
50
+ $handler->addDataTable('Environment', Env::get());
51
52
+ // 从异常堆栈跟踪中打开代码编辑器
53
if ($this->options['editor']) {
54
$handler->setEditor($this->options['editor']);
55
}
56
57
+ // 设置标题
58
$handler->setPageTitle($this->options['title']);
59
60
0 commit comments