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

okaufmann's avatar

Debugging don't work anymore with Homestead (php7) and phpstrom

Hi,

I recently updated my homesteadbox. Since then I can't debug anymore.

What do I have to configure ?

Thanks for support.

0 likes
6 replies
fideloper's avatar

What's that mean exactly? Errors aren't going to your log file? What do you see when you get errors?

okaufmann's avatar

I didn't changed anything in phpstorm and after upgrading to the new homestead box I can set as much breakpoints as I will but it catsches nowwhere. Based on that I have to configure something or doing some other thing wrong.

How did you configure for debugging with php7?

renedekat's avatar
Level 14

@okaufmann XDebug is still in beta for PHP7. XDebug is not part of the master branch of Homestead. You can either install XDebug manually or revert back to the 2.0 branch with PHP5.6.x

To install it manually do the following inside the Homestead (vagrant) box:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install php-xdebug

Run the following command and make sure the contents are as below:

sudo nano /etc/php/7.0/fpm/conf.d/20-xdebug.ini
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.max_nesting_level = 250

Time to restart PHP FPM

 sudo service php7.0-fpm restart

Now you have XDebug running. You might have to update your PHP Interpreter in PHPStorm. You should be able to fix this by going to the Run -> Web server debug validation menu option in PHPStorm.

Follow progress on XDebug here: http://xdebug.org

4 likes
okaufmann's avatar

Everything just works fine after installing beta xdebug in homestead.

Thank you so much!

3 likes
freedomfflow's avatar

THANKYOU Okaufmann for identifying this file.... I now works perfectly... I was editing the WRONG file:

sudo nano /etc/php/7.0/fpm/conf.d/20-xdebug.ini

Please or to participate in this conversation.