Last active
May 26, 2017 13:38
-
-
Save dgpro/5ad9b236766d4f84fd6897a59fe0838e to your computer and use it in GitHub Desktop.
Xdebug Laravel's artisan commands in console on vagrant for PhpStorm
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
# How it works: | |
# Make sure you have xdebug installed and configured on your server | |
# Make sure PhpStorm is listening for PHP Debug connections | |
# Just add your breakpoints and run a command | |
# 10.0.2.2 is your guest ip (I guess) | |
# and the only place I could find it is when you run `vagrant ssh` | |
# it will be printed next to "Last login: <date> from 10.0.2.2" | |
# More info here http://stackoverflow.com/a/28856207/1479743 | |
php -dxdebug.remote_autostart=on -dxdebug.remote_connect_back=off -dxdebug.remote_host=10.0.2.2 artisan <command> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment