thinkphp6开启Trace调试,tp6打开调试模式
2022-11-24 11:10:29
257
{{single.collect_count}}

Trace调试功能就是ThinkPHP提供给开发人员的一个用于开发调试的辅助工具。可以实时显示当前页面或者请求的请求信息、运行情况、SQL执行、错误信息和调试信息等,并支持自定义显示,并且支持没有页面输出的操作调试。

开启Trace调试

该功能默认关闭,要开启Trace调试功能,只需要在全局中间件定义文件中添加:

app/middleware.php

// 页面Trace调试 \think\middleware\TraceDebug::class,

 

'think\middleware\TraceDebug'

页面Trace功能仅在调试模式下有效

回帖
全部回帖({{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 ? '加载中...' : '查看更多评论'}}