Remote debug php-application with xdebug
I debug applications for a while with xdebug on local machine. I just set xdebug.remote_enable = 1 in php.ini and that's all.
Tomorrow I have need to debug application on remote host and I couldn't do this. So after some investigation I've found some solutions for remote debug:
Set xdebug.values in .htaccess: php_value xdebug.remote_enable on php_value xdebug.remote_host 209.85.148.99
If you need setup debug env for multiple users:
Set xdebug.remote_connect_back=1 in php.ini xdebug.remote_connect_back=1
Set up dbg proxy. Read more:
http://xdebug.org/docs/remote, chapter - Multiple Users Debugging
http://derickrethans.nl/debugging-with-multiple-users.html
Set up ssh tunnel.
Enable remote_enable through php.ini or .htaccess xdebug.remote_enable=1
Open ssh tunnel ssh -N -R 9000:localhost:9000 [email protected]














