请教:app.debug=true/false如何验证?

liziyu

问题描述

请教大佬:
在配置项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, 
];
43 1 0
1个回答

https://www.workerman.net/doc/webman/config.html#%E7%89%B9%E5%88%AB%E6%8F%90%E9%86%92

开启后如果页面出错会有详细的调用栈信息,目的开发调试方便。
不开启的话只有简略的错误信息。

  • liziyu 1天前

    谢谢老大。好久没看文档了大意了!~

🔝