Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

James_Moore's avatar

Xdebug from the command line

I'm jumping back into solving problems on https://exercism.io/my/tracks/php each problem comes with a _test.php file you run the test from the command line using phpunit file_test.php everything fails then you write the code to make them pass and submit. What would be great if i could set break points in my php storm so I could step through. All the tutorials ive found are for setting this up for a laravel application on a web server. Does anyone know of a way to set this up for just running a php test script.

0 likes
4 replies
James_Moore's avatar

Thank you ! Ill check it out greatly appreciated

James_Moore's avatar

Following this I can set up a vagrant box with xdebug, but I'm still unsure of how to do it on my local host when running unit tests on exercism. I dont go through vagrant when doing this challenges I just pull the code to my local machine, and load it up in php storm. It would be great if i could run the tests and step through them / the code as I solve them. @bobbybouwmann Thanks for all the help so far i book marked that handbook its great.

Please or to participate in this conversation.