I've read all the relevant postings on this topic, including the FAQs commonly given in replies, but I still can't get DBG to work with SSH.
I've got the 2.16.7 "so" on my Linux 7.3 server and the PhpEd DBGListener says 2.16.7, and I've set Tools->Settings, Debugger Tab to: localhost
My php.ini file has:
extension=dbg.so-4.3.1
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=localhost
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16
|
My ssh client is PuTTY and here I have deviated a bit from the documentation. I did
not give the command
ssh -R 7869:localhost:7869 myname@myhost
|
Instead, I am using port forwarding. My server and client are both behind a NAT device, and I have forwarded local 7869 to my server at 192.168.1.2:7869. This is exactly the same way I forward port 3306 to use a client to manage my MySQL database, so I hope this is OK.
At this point, netstat -na on the server shows neither 7869 nor 10000. Prior to starting PhpED, netstat -na on the client also makes no mention of either 7869 or 10000, however, once I start up PhpED, I get this on the client:
0.0.0.0:10000
127.0.0.1:7869
|
Now, when I give the server command:
I get: "Connection Refused". I guess this doesn't surprise me, since the netstat didn't show a listener on the port.
When I look at dbglistener's setup, I see that the bind address is 192.168.1.137, which is correct for my client, but the port listed is 10000. This surprised me, so I clicked "reset" and it changed to 7869. However, no matter what I do, trying to start a debug session always results in:
failed to connect to the client address 127.0.0.1:10000
|