NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Remote debbuging doesn't work for me :/


Joined: 16 Aug 2006
Posts: 13
Reply with quote
Hi.

I've got problem with remote debugging. I read some entries on this forum, but none was helpful for me :/
Here is my problem:
When I try "Run in debbuger" i got response like this:

Code:

DBG 3.1.5

Failed to run DBG session

Reason: failed to connect to the client address 10.0.45.142:7869
Not sure what it means? Visit http://www.nusphere.com/dbg/ for troubleshooting.


Debugger request:   "389455085083900001;d=1,p=0,c=1"
Request found in:   "query_string"
Target PHP version: "4.3.9"
Server API:         "Apache 2.0 Handler"
Extensions API:     "20021010"
Modules API:        "20020429"
PHP API:            "20020918"


I got DBG installed on server (10.0.45.150) (it's shown in phpinfo()), and entries in php.ini like this (no zend extensions):
Code:

extension=dbg.so-4.4.2

[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=ALL
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16
debugger.JIT_enabled = true


Server runs PHP Version 4.3.10-16 and there is no firewall or something that could block ports.
I'm using PHPEd 4.6 (4618Eval) Trial Version and DBG Listener (v3.1.5) is running.

Here is part of listing of results returnet by netstat -an:
Code:

TCP    0.0.0.0:7869           0.0.0.0:0              LISTENING


In DBG Listener Setup I got this options:
Bind address: <<ALL ADDRESSES>>
Port: 7869
IDE COM Class PHPEd IDE ver 4.6
Codpage: UTF-8

And last thing .... here is listing for ipconfig command (on client/my machine):
Code:

Sufiks DNS konkretnego połączenia : office.gadu-gadu.pl
Adres IP. . . . . . . . . . . . . : 192.168.1.35
Maska podsieci. . . . . . . . . . : 255.255.255.0
Brama domyślna. . . . . . . . . . : 192.168.1.1


Thanks in advance for any help.

Best regards
Jacek
View user's profileFind all posts by wengoshSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
Reason: failed to connect to the client address 10.0.45.142:7869

so it's the address under which server sees your client.

Quote:
TCP 0.0.0.0:7869 0.0.0.0:0 LISTENING
Adres IP. . . . . . . . . . . . . : 192.168.1.35

but listner is on the other address.

Both 10.0.x and 192.168.x are local network addresses, so you seems are working with web server running on the LAN.
Please make sure that 10.0.45.142 is your IP. If it is address of a router, you need to set up port forwarding between 10.0.45.142:7869 and 192.168.1.35:7869 (see NAT manual) or use ssh tunneling.
Both ways are described on the FAQ section of this forum board.

Let know if you get further problems.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 16 Aug 2006
Posts: 13
Reply with quote
Thank you a lot. That was it Smile I've made ssh tunel and now it works perfect. Thanks again :]

Best regards
Jacek
View user's profileFind all posts by wengoshSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Congratulation Smile
BTW, if server is in a trusted network, you may setup port forwarding as I mentioned earlier, it works a bit faster than ssh.
For example since XP's firewall is a NAT router, you can set like shown there:

View user's profileFind all posts by dmitriSend private messageVisit poster's website
Remote debbuging doesn't work for me :/
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