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/ZendDebugger.so) 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/ZendDebugger.so" zend_debugger.allow_hosts = 192.168.43.1 zend_debugger.expose_remotely=always zend_debugger.passive_mode_timeout=600
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 192.168.0.0/16 – 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”