til

#TIL : Never autostart XDebug in cli environment

I learned on 2018-05-07 about debug, php

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.

Enjoyed this?

Leave a kudo — it means a lot.

0