Created
January 30, 2016 21:17
-
-
Save vlio20/4375368347c8edae358d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Edited last year by Lewis | |
PHPStorm debugging is amazing | |
I recently installed Homestead for my development environment and discovered Xdebug needed some additional settings before it would work. Here's a step-by-step process that I used to get PHPStorm + Homestead + Xdebug working in harmony. | |
I'm going to assume you have installed PHPStorm and Homestead. | |
Configure Xdebug | |
Navigate to Tools>Vagrat>Up | |
Navigate to Tools>Start SSH Session and choose your vagrant host (PHPStorm automatically adds this) | |
In the terminal, sudo nano /etc/php5/fpm/conf.d/20-xdebug.ini | |
Paste the following into the file: | |
zend_extension=xdebug.so | |
xdebug.remote_enable = 1 | |
xdebug.remote_connect_back = 1 | |
xdebug.remote_port = 9000 | |
xdebug.scream=0 | |
xdebug.cli_color=1 | |
xdebug.show_local_vars=1 | |
To close and save the file, on Windows I do: Ctrl+x followed by y for yes and enter. | |
In the terminal, sudo service php5-fpm restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment