PHP remote debugging in Eclipse PDT

in order to start remote debugging your php scripts right from your development server, you’ll need the Zend debugger for your server’s platform from here:

Chose the right ZendDebugger shared library for your PHP version (e.g. 5_2_x_comp/ and copy it to your server – most likely where your other PHP extensions reside (in my case a turnkey LAMP stack —> directory /usr/lib/php5/20060613+lfs)

Now add a little information to the end of your php.ini. Make sure, you use the right php.ini file (if you’re unsure: consult phpinfo() under the key “Loaded Configuration File”)

zend_extension = "/usr/lib/php5/20060613+lfs/"
zend_debugger.allow_hosts =

Of course adjust the first to lines accordingly. Allowed host is the IP address of the PC that’s running your Eclipse IDE. For more information on these directives, consult TFM 😉
Just a small notice on ‘allowed_hosts’: You can define full netmasks here, such as – that means every IP in 192.168.*.*  – perfect for home DHCP or teamwork.

If your installation work was succesful, you’ll see a new paragraph in phpinfo() output that refers to as “Zend Debugger”

Comments are closed.