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

后端 未结 9 1976
时光取名叫无心
时光取名叫无心 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条回答
  •  攒了一身酷
    2020-12-23 11:38

    On Windows with phpStorm

    Enter this into the command line:

    set XDEBUG_CONFIG="idekey=PHPSTORM"
    

    This will add an environment variable that phpStorm will lookout for.

提交回复
热议问题