Using an alias for php in debug configuration
Hi
I'm using laravel homestead vagrant box.
By default it disables CLI xdebug for php - I know how to configure and have this up and running but looking to reduce the pain of set up each time I start from scratch.
The homestead scripts include an alias for php that enables CLI xdebug. Instead of php to run commands I can use xphp.
So - if i'm running a phpunit test how do I correctly get PHPStorm to use xphp instead of php?
Do I set up a new php server configuration or can I use the run time configution?
Any help appreciated?
https://laravel.com/docs/9.x/homestead#debugging-cli-applications
请先登录再写评论。
Hi,
I have not tried 'xphp' personally and not sure if fully understand how this solution works but you may try specifying in as a PHP CLI Interpreter in IDE and use it for the PHPUnit run configuration, like:

So, the major question, does it work in general if you add 'xphp' as a PHP CLI Interpreter in IDE?