读完这篇文章后https://developer.shopware.com/docs/guides/plugins/apps/app-scripts#developing-debugging-scripts,我更新了 .env 文件并将“dev”设置为 APP_ENV 值,但调试栏不会显示在店面的任何位置。
还有什么事情要做吗?
我本地的Shopware版本是6.4.18.0
如果您通过
composer create-project shopware/production
使用 Symfony Flex 模板,则必须另外安装 shopware/dev-tools
composer require shopware/dev-tools
安装分析器包:
composer require --dev profiler