Skip to content

Instantly share code, notes, and snippets.

@tadas-s
Created July 7, 2014 08:34
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 tadas-s/dae6a8f506993da19993 to your computer and use it in GitHub Desktop.
Save tadas-s/dae6a8f506993da19993 to your computer and use it in GitHub Desktop.
xdebug cli script from vagrant machine
# Say project domain in PhpStorm is configured as example.org and your VM IP is xxx.xxx.xxx.yyy:
PHP_IDE_CONFIG=serverName=example.org php -dxdebug.remote_autostart=1 -dxdebug.remote_host=xxx.xxx.xxx.1 -f ./app/console.php -- console:args --go-here
# with xdebug log (useful for troubleshooting)
PHP_IDE_CONFIG=serverName=example.org php -dxdebug.remote_log="./xdebug.log" -dxdebug.remote_autostart=1 -dxdebug.remote_host=xxx.xxx.xxx.1 -f ./app/console.php -- console:args --go-here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment