Skip to content

Instantly share code, notes, and snippets.

@dirx
Last active November 16, 2015 16:42
Show Gist options
  • Save dirx/0c0d944fcd58af5e72ab to your computer and use it in GitHub Desktop.
Save dirx/0c0d944fcd58af5e72ab to your computer and use it in GitHub Desktop.
Remote xdebug php console scripts in vagrant box
XDEBUG_REMOTE_HOST=$(echo $SSH_CLIENT | cut -d "=" -f 2 | awk '{print $1}')
alias phpx="export PHP_IDE_CONFIG=serverName=*NameOfServersHostInPHPStorm*;php -dxdebug.remote_enable=1 -dxdebug.remote_host=$XDEBUG_REMOTE_HOST -dxdebug.idekey=PHPSTORM -dxdebug.remote_autostart=1 -dxdebug.remote_connect_back=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment