请教大佬:
在配置项config/app.php
中有个配置项 debug=true
作用体现在哪里啊?
开启与关闭的效果如何验证呢?
<?php
use support\Request;
return [
'debug' => true,
'error_reporting' => E_ALL,
'default_timezone' => 'Asia/Shanghai',
'request_class' => Request::class,
'public_path' => base_path() . DIRECTORY_SEPARATOR . 'public',
'runtime_path' => base_path(false) . DIRECTORY_SEPARATOR . 'runtime',
'controller_suffix' => 'Controller',
'controller_reuse' => false,
];
https://www.workerman.net/doc/webman/config.html#%E7%89%B9%E5%88%AB%E6%8F%90%E9%86%92
开启后如果页面出错会有详细的调用栈信息,目的开发调试方便。
不开启的话只有简略的错误信息。
谢谢老大。好久没看文档了大意了!~