I have installed the zend/pdt all in one eclipse on my linux machine. I have also installed the Zend debugger extension. I have also verified the correct installation by running phpInfo() and checking for the ".. with Zend Debugger v5.2.15.." message in the Zend banner section.
When I try to test my debug session in eclipse by clicking on the "Test Debugger" button, I get a message in my server log saying: "
[Zend Debugger] Cannot connect to host 127.0.0.1". There are no other complaints in my server logs.
I'm running eclipse and apache on the same computer.
I have added my loopback address (127.0.0.1/32) to the allow_hosts list in my php.ini file.
I got it! I added ssh tunneling option to debug configuration in Eclipse and it works now.
1. Go to Debug Configurations->New Web Page Configuration->Advanced tab
2. Check "Debug Through SSH Channel" check box and enter ssh login/password
3. Select "Start Debug from" and choose the page.
4. Set breakpoints, click Debug button
[Zend Debugger] Cannot connect to host 126.96.36.199
[Zend Debugger] Cannot connect to host 127.0.0.1
[Zend Debugger] Cannot connect to host 192.168.2.8
It seems like it is impossible to establish connection from remote server to my local computer. I tried to replace my local IP with external IP in Eclipse IP list, but the result is the same.
Do you have any ideas?
Thank you and everyone else in this thread.
this has hinted me into the problem:
in my case I am sitting on a LAN (10.xx.0.xx), trying to run debug remotely on a VM server with a real internet IP address - but of course it couldnt reach me, until ISP guys looked at their network equipment, and opened the port (10xxx I dont remember).