ThinkPHP6.0开启调试模式和显示错误信息
2022-07-28 14:14:58
332
{{single.collect_count}}

(一)显示错误信息
在config文件夹下打开app.php文件,将’show_error_msg’=>false,的false改为true。此时,可会显示错误信息了。
在这里插入图片描述
(二)开启调试模式
一步即可到位,修改项目根路径的.example.env环境变量示例文件,改成.env。其中的APP_DEBUG默认是true。
在这里插入图片描述
切记: 项目上线前把debug关掉,否则很可能泄露服务器信息。将true改为false即可。

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}