Skip to content

Instantly share code, notes, and snippets.

@dgpro
Last active May 26, 2017 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgpro/5ad9b236766d4f84fd6897a59fe0838e to your computer and use it in GitHub Desktop.
Save dgpro/5ad9b236766d4f84fd6897a59fe0838e to your computer and use it in GitHub Desktop.
Xdebug Laravel's artisan commands in console on vagrant for PhpStorm
# 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