Created
November 4, 2017 16:58
-
-
Save quickshiftin/19122663962aee5237a1ec9a78ff362d to your computer and use it in GitHub Desktop.
Launch xdebug on a CLI script on a server you are connected to via SSH
This file contains 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
#!/bin/bash | |
php -d xdebug.remote_autostart=1 -d xdebug.remote_host=$(echo $SSH_CLIENT | sed 's/ .*//') path-to-php-script.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment