January 27, 2016
Setting Up Xdebug on Laravel Homestead With PHP 7

At the time of writing this, the latest version of Laravel Homestead (4.0) comes packaged with PHP 7 and Xdebug 2.4.0RC3. However, it’s not configured for remote debugging. Follow the steps below to properly setup Xdebug.

First, ssh into the vagrant box and append the content below to the /etc/php/mods-available/xdebug.ini file.

xdebug.idekey = "phpstorm"
xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.remote_port = 9000

Now, all that’s left to do is restart PHP-FPM, and you’re ready to rock!

sudo service php7.0-fpm restart
Copyright © 2021 Allan Kiezel – Long Island Web Designer & App Developer. All rights reserved.