Remove warnings about performance impact of Xdebug (in CLI)
I just found the composer/xdebug-handler
-package.
The package can be used to:
Restart a CLI process without loading the Xdebug extension, unless xdebug.mode=off.
When called via CLI, Composer uses it internally to restart the PHP process without Xdebug.
Therefore Xdebug has no impact on the performance.
See: https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer
As Xdebug has no performance impact, the warnings about it should be removed from QUIQQER (in CLI, e.g. the setup).
If warnings are still shown by Composer the COMPOSER_DISABLE_XDEBUG_WARN=1
environment variable can be set, to disable the warnings.
Furthermore, if development mode is enabled, the COMPOSER_ALLOW_XDEBUG=1
environment variable could/should be set, to allow Xdebug in composer processes.