1. 在 TP6.0 當前最新版 (v6.0.7) 中
默認安裝的時候會自動安裝 topthink/think-trace
擴展
在調試模式下瀏覽器右下角會出現trace信息, 此時無法手動關閉 Trace 調試, 只有切換到部署模式 trace 調試才會關閉
2. 如何在調試模式下關閉 trace 調試
在TP6.0最新版中, 調試模式下是無法關閉 trace 調試的
但是可以通過移除 topthink/think-trace
擴展來關閉 trace 信息
通過查看框架根目錄下的 composer.json
可發現該擴展在 require-dev
中
"require-dev": {
"topthink/think-trace": "^1.4"
},
移除 require-dev
中的擴展包需要添加 --dev
參數
composer remove topthink/think-trace --dev
如果需要再次使用 trace 調試,重新引入擴展即可
composer require topthink/think-trace --dev