How can I get XDebug to run with PHPUnit on the CLI?

后端 未结 9 1981
时光取名叫无心
时光取名叫无心 2020-12-23 11:01

I\'ve tried running the following CLI command:

phpunit -d xdebug.profiler_enable=on XYZTestCase.php

but it just runs as normal. Can anyone

9条回答
  •  旧时难觅i
    2020-12-23 11:35

    The correct name of the setting is xdebug.profiler_enable with an underscore. Change your command to this:

    phpunit -d xdebug.profiler_enable=on XYZTestCase.php
    

提交回复
热议问题