Skip to content

Instantly share code, notes, and snippets.

@christianchristensen
Created October 9, 2013 17:58
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 christianchristensen/6905441 to your computer and use it in GitHub Desktop.
Save christianchristensen/6905441 to your computer and use it in GitHub Desktop.

SSH

ssh -R 9000:localhost:9000 remote_host

Ubuntu

$ sudo apt-get install php5-xdebug
$ cat /etc/php5/conf.d/xdebug.ini
zend_extension=/usr/lib/php5/20090626/xdebug.so
xdebug.remote_autostart=On
xdebug.remote_enable=On

Eclipse

Preferences->PHP->Debug

  • PHP Debugger: XDebug
    • Configure->Configure->Access remote session (JIT): any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment