I ran into some troubles with the debugging with XDebug in Eclipse for PHP Developers / PDT (breakpoints stopped to take / catch, after I changed location of my www folder - which I figured out later), so I wanted to document the full setup procedure it here. I mainly followed this blog post. (Assuming you have apache and php set up!).
apt-get install php5-xdebug
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
# xdebug.remote_log="/tmp/xdebug.log"
/etc/php5/conf.d/xdebug.ini.ucf-dist
sudo apache2ctl restart
Then an important thing If you have changed the location of your www folder from /var/www, then don't miss this! This was what caused the problem for me, with breakpoints not taking:
Comments
Use XDebug v 2.1.0
Well, I ran into troubles anyway. The value of local variables was not shown. This was solved by downloading (from here) and compiling the latest version of XDebug (2.1.0) from source. Step by step instructions:
Then change the first line in /etc/php5/conf.d/xdebug.ini to the path of [your-wished-folder]/xdebug.so