#TIL : Never autostart XDebug in cli environment

May 7, 2018 4 mins read

Never autostart XDebug in cli environment

TLDR;

Never ever enable xdebug.remote_autostart in cli

Xdebug is handy extension helps you debug your PHP code. But it slows the performance in cli mode, especially run PHP cli tool like composer or phpunit.

So please disable Xdebug in cli mode or set xdebug.remote_autostart=0 in INI file.

comments powered by Disqus