Skip to content

Instantly share code, notes, and snippets.

@quickshiftin
Created November 4, 2017 16:58
Show Gist options
  • Save quickshiftin/19122663962aee5237a1ec9a78ff362d to your computer and use it in GitHub Desktop.
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
#!/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