Skip to content

Instantly share code, notes, and snippets.

@grimzy
Last active May 29, 2019 17:49
Show Gist options
  • Save grimzy/de147025e77672ad9154e0e811278b21 to your computer and use it in GitHub Desktop.
Save grimzy/de147025e77672ad9154e0e811278b21 to your computer and use it in GitHub Desktop.
Debugging Remote CLI with Phpstorm
#!/usr/bin/env bash
XDEBUG_CONFIG="idekey=PHPSTORM" PHP_IDE_CONFIG="serverName=$(hostname)" php -dxdebug.remote_host=`echo $SSH_CLIENT | awk '{print $1}'` "$@"
XDEBUG_CONFIG="idekey=PHPSTORM" PHP_IDE_CONFIG="serverName=$(hostname)" php -dxdebug.remote_host=`echo $SSH_CLIENT | awk '{print $1}'` "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment