I use PHPStorm, which is configured to use xDebug (I can debug through a web browser just fine)
I am running a debugger in PHPStorm which has idekey 11854 and I am trying to debug unit test and I set breakpoints correctly
so I ran this command via cli:
phpunit -d xdebug.profiler_enable=on -d xdebug.idekey=11854 --filter testFunction s_function/sFunctionTest.php
However, it will not debug at the breakpoint accordingly ...
when I tried to execute this in a test script:
error_log(ini_get('xdebug.profiler_enable')); error_log(ini_get('xdebug.idekey'));
it would show that xdebug.profiler_enable is 0, and xdebug.idekey is just my username.
What i did wrong and how can i get xdebug to work on phpunit via cli
source share