NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DBG listener not listening. How do I find out why?


Joined: 21 Nov 2005
Posts: 2
Reply with quote
Hi,

I have apparently successfully installed the dbg.so library under linux, but the listener that should be running on port 7869 does not appear, as a result, I cannot debug any sessions.\

Does anyone have any suggestions on how I can determine why the listener is not appearing, or suggest why my configuration is causing the listener not to run?

Thanks in advance

- Paul


Relevant details
===
Apache 1.3.x
PHP 4.4.0

installed the php 4.4.0 dbg shared library from the dbg-2.18.3-Linux.tar.gz in the phped windows 4.0 distribution

===
php.ini
===
extension=dbg.so-4.4.0
[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=localhost, host1, host2, host3 (hosts 1,2,3 are clients trying to run the debugger)
debugger.hosts_deny=ALL
debugger.ports=7869,10000/16
debugger.fail_silently=off

===
output from phpinfo()
===
...
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with DBG v2.18.2, (C) 2000,2005, by Dmitri Dmitrienko
...
dbg
DBG php debugger, version 2.18.2, Copyright 2001, 2005 Dmitri Dmitrienko, http://www.nusphere.com/dbg

Version 2.18.2
Linked as a shared library.
Dbg security enabled.
Profiler compiled, enabled
Target PHP version 4.4.0
Server API Apache
Extensions API 20050606
Modules API 20020429
PHP API 20020918

Directive Local Value Master Value
debugger.enable_session_cookie On On
debugger.enabled On On
debugger.fail_silently Off Off
debugger.hosts_allow protected value protected value
debugger.hosts_deny protected value protected value
debugger.ignore_nops Off Off
debugger.JIT_enabled Off Off
debugger.JIT_host clienthost clienthost
debugger.JIT_level 3 3
debugger.JIT_port 7869 7869
debugger.net.chunksize 48000 48000
debugger.net.maxpacketsize 4096000 4096000
debugger.ports protected value protected value
debugger.profiler_enabled On On
debugger.session_nocache On On
debugger.timeout_seconds 300 300
===

however netstat -an shows that the listener is *not* running

===
tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
===

There are no errors in the apache error log when apache is stopped and then started.


===
hosts.allow
===
ALL: ALL

===
hosts.deny
===
<empty file>
View user's profileFind all posts by pdwalkerSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
DbgListener is not supposed to listen on the server. It runs on the workstation and does listen there.
Debugger module that runs on the server is supposed to connect back to the listener. If you have a kind of router (NAT or non-NAT), it's necessary to either forward listener's port using router-rules or use SSH tunneling.
See relevant posts on this forum board on how to setup projects and SSH tunneling or router's manual on how to forward TCP/IP ports.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Nov 2005
Posts: 2
Reply with quote
Thank you for clearing that up.

That was indeed the problem.

It was not clear to me from the docs that that was the way it was supposed to connect.

Thanks.

- Paul
View user's profileFind all posts by pdwalkerSend private message
DBG listener not listening. How do I find out why?
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