How to trigger XDebug profiler for a command line PHP script?

后端 未结 8 1468
太阳男子
太阳男子 2020-12-04 04:48

XDebug offers the configuration directive \"xdebug.profiler_enable_trigger\" that allows to activate profiling by passing the GET or POST parameter \"XDEBUG_PROFILE\" when c

8条回答
  •  無奈伤痛
    2020-12-04 05:51

    You can pass INI settings with the -d flag: php -d xdebug.profiler_enable=On script.php.

提交回复
热议问题