I\'ve tried running the following CLI command:
phpunit -d xdebug.profiler_enable=on XYZTestCase.php
but it just runs as normal. Can anyone
You can run Xdebug from the command line by setting an environment variable beforehand, e.g.:
export XDEBUG_CONFIG="idekey=YOUR_IDE_KEY remote_host=localhost remote_enable=1"
This worked for me.
More information on the Xdebug documentation.