NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
no answer from DBG under Linux


Joined: 02 Dec 2004
Posts: 21
Reply with quote
Hi.
I've installed DBG under Linux following the faq.
After restarted Apache, the result of phpinfo() is the following:

Code:

      DBG php debugger, version 2.11.30, Copyright 2001, 2004, Dmitri
                        Dmitrienko, www.nusphere.com

   Version  2.11.30
   Linked   as a shared library.
   Profiler compiled, enabled
             Directive            Local Value Master Value
   debugger.enable_session_cookie On          On
   debugger.enabled               On          On
   debugger.fail_silently         On          On
   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.profiler_enabled      On          On
   debugger.session_nocache       On          On
   debugger.timeout_seconds       300         300


but if, from the consolle of the same machine, I launch:
Code:

# netstat -na | grep 7869

no results appears, and if I launch:
Code:

# telnet localhost 7869

the answer is:
Code:

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


What could be the problem?

Thank you
Nico
View user's profileFind all posts by nicotSend private message


Joined: 09 Dec 2003
Posts: 92
Reply with quote
Is that the machine you're running Apache on, PhpEd, or are you running Apache & PhpEd on the same linux machine?
View user's profileFind all posts by mpSend private message


Joined: 02 Dec 2004
Posts: 21
Reply with quote
PhpEd is running on a windows machine.
I've installed DBG on a Linux server to evaluate the "HTTP mode (3rd party WEB server)".
View user's profileFind all posts by nicotSend private message


Joined: 09 Dec 2003
Posts: 92
Reply with quote
Well, the DBG listener is running on your windows machine. Start PhpEd (so the listener is running in the systray) and try "netstat -an" on the windows machine, it should show the listener listening on some local address.

If that works, request a remote file in your web browser like http://[thelinuxhostnameoraddresshere]/some/script.php?DBGSESSID=1

If the debugger icon in the systray switches its icon to "running", the debugger setup is working fine. Otherwise, report any error messages you get.
View user's profileFind all posts by mpSend private message


Joined: 02 Dec 2004
Posts: 21
Reply with quote
The DBG on the windows machine gives no problems: it works well.
The fact is that on my Linux machine I've also some special PHP modules (as pdflib) so I'd like to debug script there.
View user's profileFind all posts by nicotSend private message


Joined: 09 Dec 2003
Posts: 92
Reply with quote
Sorry, I don't understand your problem.

The debugging system consists of two parts: A "server side" (PHP extension module installed on the webserver machine) and a "client part" (the DBG listener running on your local (WinXP?) box). The former can be checked by looking at phpinfo() output, the latter by running netstat on your local machine or looking at the systray.)

You will always need both of them; when you have serveral different remote machines, all of them need the DBG extension. However, you will always use the same single installation of the DBG listener on your local machine.

Now it might happen that the "remote webserver machine" is actually the same as your "local machine" (the one running PhpEd). This is the case when running a local instance of Apache or using the SRV webserver which is part of PhpEd. But - all that makes no difference. Both parts of the debugging system are still there and communicating as if they were on different machines.

Please explain what exactly your problem is. By now, you have just described what you can find (which seems to be ok so far) but not what your problem actually is.

Have you tried to upload the script to the remote server and debug it?
View user's profileFind all posts by mpSend private message


Joined: 02 Dec 2004
Posts: 21
Reply with quote
Ok.
If I debug a script on my local machine (windows) with run mode = HTTP mode (SRV local WEB server) all works properly.
But if I set run mode = HTTP mode (3rd party WEB server) and I try to debug a script that is on my server (linux) the result is the following message:
Code:

Failed to start debugger session (timeout)
Please verify if debugger module is installed on the server that corresponds to "http://my.server.com/test.php" URL.
Also make sure that server is up and running


my.server.com is the address of my linux server where Apache/Php5 is running.

So I've installed the DBG module on that server thinking that this should solve the problem.
DBG seems to be well installed but the error message always appears.
View user's profileFind all posts by nicotSend private message


Joined: 09 Dec 2003
Posts: 92
Reply with quote
Ok, now maybe someone else (Dmitri Cool ?) should have a look at this.

What about DBG and PHP5? Is it correct that you're running DBG 2.11.30 on the remote machine (the above phpinfo() output suggests that)?
View user's profileFind all posts by mpSend private message


Joined: 02 Dec 2004
Posts: 21
Reply with quote
Just to complete my description:

The project I'm working on has the following properties:
Root directory: a local path
Source control: none

Account: an ftp account to my Linux server

Run mode: System default
Root URL: http://my.server.com/
Remote root directory: /


Last edited by nicot on Thu Dec 02, 2004 11:46 am; edited 1 time in total
View user's profileFind all posts by nicotSend private message


Joined: 09 Dec 2003
Posts: 92
Reply with quote
I would almost bet that "Remote root directory: /" must be wrong.
View user's profileFind all posts by mpSend private message


Joined: 02 Dec 2004
Posts: 21
Reply with quote
I made a mistake: the Php version is 4.3.8.
Tha Php 5 is on another server, where I've tested DBG with the same results.
View user's profileFind all posts by nicotSend private message


Joined: 09 Dec 2003
Posts: 92
Reply with quote
Did you read this topic?

http://forum.nusphere.com/tip-troubleshooting-debugger-communications-t579.html
View user's profileFind all posts by mpSend private message
no answer from DBG under Linux
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 2  

  
  
 Reply to topic