运行作曲家时禁用 xdebug
运行 composer diagnostic
时,出现以下错误:
When running composer diagnose
, I get the following error :
加载了 xdebug 扩展,这会稍微减慢 Composer.建议在使用 Composer 时禁用它.
The xdebug extension is loaded, this can slow down Composer a little. Disabling it when using Composer is recommended.
如何仅在运行 Composer 时禁用 xdebug?
How can I disable xdebug only when I'm running Composer?
推荐答案
可以禁用 Xdebug 设置环境变量:
You can disable Xdebug setting an environment variable:
XDEBUG_MODE=off composer install
可使用 XDebug 3.
相关文章