How to trigger XDebug profiler for a command line PHP script? October 15, 2022 by Tarik You can pass INI settings with the -d flag: php -d xdebug.profiler_enable=On script.php.