NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Cannot get rid of timeout in dbg-cli console


Joined: 07 Feb 2008
Posts: 3
Reply with quote
I am unable to get rid of the "Session start timeout has expired." message when using the debugger.

I am trying with the dbg-cli client in cli mode for php.

phpinfo() indicates that Dbg is loaded and I get no errors in the log files.

The php.ini has these settings:
[debugger]
debugger.enabled=On
debugger.profiler_enabled=On

PHP 5.2.3-1ubuntu6.3 (cli) (built: Jan 10 2008 09:38:37)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with DBG v2.15.5, (C) 2000,2007, by Dmitri Dmitrienko

Linux version 2.6.22-14-generic (buildd@terranova) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue Dec 18 08:02:57 UTC 2007
View user's profileFind all posts by mortoraySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
please check if you you set port to 7869.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 Feb 2008
Posts: 3
Reply with quote
I've tried additionally with these options in PHP:

debugger.JIT_host = clienthost
debugger.JIT_port = 7869

I've also set host to explicitly localhost.
View user's profileFind all posts by mortoraySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
I meant if you set port in the dbg-cli console

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 Feb 2008
Posts: 3
Reply with quote
I matched "debugger.JIT_port" to the port option in the client. I still get the same problem, "Session start timeout has expired."

debugger.JIT_port = 10001

dbg> show port
10001.

I also tried changing it to the suggested port:
debugger.JIT_port = 7869

dbg> set port 7869

I've set this in both the web settings and cli settings in apache (in both cases dbg is shown to be running).

I also tried doing a listen on the dbg-cli:
dbg> listen 10001

But I'm not sure how I can get a PHP to connect (from the web or otherwise).
View user's profileFind all posts by mortoraySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
listen 10001

it means wait for 10001 seconds

Quote:
dbg> set port 7869

this is correct.


please run listen, switch to another console and check if it listens. Something like this: #netstat -naop|grep ':7869'
if it listens, open browser and type an URL like this:

http://localhost/existingscript.php?DBGSESSID=1@localhost:7869

(please note that dbg-cli runs php only in CGI mode. If you need to debug php under your web server, you have to run the URL manually like above)
alternatively you may want to try out NuSphere PhpED product.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Cannot get rid of timeout in dbg-cli console
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