NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Troubles with PHP Eclipse and DBG


Joined: 01 Dec 2005
Posts: 3
Reply with quote
Hi, thanks for reading this. I am trying to run the dbg-2.11.32 in a Linux Debian unstable dist, whith php4 4.4.0 and apache/2 .0.55. I had no problems installing it, phpinfo() says it is compiled and all. The trouble comes when I try to run a client. I tryed whith PHPEclipse and with dbg-cli compiled, but in both cases appears the same error:

DBG

Failed to start debug session

reason:
failed to establish connection to client host on localhost:10001

when I try telnet I get the following:

$ telnet localhost 7869
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

and when I try netstat -nao|grep 7869 nothing appears.

I flushed iptables permitions (i thought maybe was a firewall problem), but does nothing. It behaves as if dbg server wouldn't exist.

could anybody help?
View user's profileFind all posts by agmoyanoSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
1) seems you run debug using 10001 and you check 7869 port using telnet. Debugger, depending on the settings, uses just one port, not both.
2) why telnet localhost 7869? Are you using localhost for debugging?
Anyway, it's up to PHPEclipse to listen on 7869 or 10001 port, so please flame on guys behind PHPEclipse, please.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 01 Dec 2005
Posts: 3
Reply with quote
Sorry, didn't meant to flame, I just tryed for hours to make it work with no results, and was a little frustrated. Very Happy
Before I posted the previous message I didn't know that I could run dbg-cli whith the "run" command (my fault). I only tried the "listening" one. I made it work with the first command, but not with the second.
I was checking 7869 port because, when I did "netstat -naop|grep dbg-cli", when dbg-cli is running "listen" command I got somthing like this:

$ netstat -naop|grep dbg-cli
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:33752 0.0.0.0:* LISTEN 7302/dbg-cli off (0.00/0/0)

It says that dbg-cli is listenning on 33752 port, although the "show port" says 10001. When in my url I added "?DBGSESSID=1@localhost:33752" I got this:

DBG

Failed to start debug session

reason:
failed to establish connection to client host on localhost:7869

thats why I assumed it looked for the server on 7869.
Any idea of why it behaves like that?
Should I tell apache to listen on 10001 port?
View user's profileFind all posts by agmoyanoSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
try set port 7869, then listen 100 and check if it listens on 7869 (should do it)
Quote:
Should I tell apache to listen on 10001 port?

no, of course Apache's port is by default 80 and if you use any other port, it should be reflected in the URL you run with.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 01 Dec 2005
Posts: 3
Reply with quote
Yes, that did it! thank you!, now to flame PHPEclipse guys! (joking) :P
View user's profileFind all posts by agmoyanoSend private message
Troubles with PHP Eclipse and DBG
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic