NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
"Session start timeout has expired" *solved*


Joined: 13 Apr 2005
Posts: 5
Location: Moscow
Reply with quote
---------System:
Linux exx 2.6.10-1.14_FC2 #1 Thu Feb 10 17:13:14 EST 2005 i686 i686 i386 GNU/Linux

[alex@exx dbg-cli-2.11.32-glibc-2.2]$ php -m
[PHP Modules]
bcmath
...
dbg
...
zlib

[Zend Modules]
DBG

[alex@exx dbg-cli-2.11.32-glibc-2.2]$ ls -l /usr/lib/php4/dbg*
-rwxrwxr-x 1 root root 69756 Фев 1 02:34 /usr/lib/php4/dbg.so-4.3.10

--------------php.ini--------------------
[debugger]
debugger.enabled=On
debugger.profiler_enabled=On
;debugger.hosts_allow=host1 host2 host3
debugger.hosts_allow=127.0.0.1
debugger.hosts_deny=ALL
debugger.ports=7869, 10000/16
;debugger.fail_silently=Off
---------------------------------------------

----------phpinfo() output: --------------
Version 2.11.32
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
-----------------------------------------------------

----Debug session console "print-screen":-----------
[alex@exx dbg-cli-2.11.32-glibc-2.2]$ php test.php
Content-type: text/html
X-Powered-By: PHP/4.3.10

this damn error drives me mad Smile
[alex@exx dbg-cli-2.11.32-glibc-2.2]$
[alex@exx dbg-cli-2.11.32-glibc-2.2]$
[alex@exx dbg-cli-2.11.32-glibc-2.2]$ ./dbg-cli
DBG php debugger, version 2.11.32, Copyright 2001, 2005, Dmitri Dmitrienko, www.nusphere.com
dbg>file test.php
Reading symbols from test.php...done.
dbg>list
No symbol table is loaded. Use the "file" command.
dbg>run

Program exited.
Session start timeout has expired.
Program is not being run.
dbg>q
[alex@exx dbg-cli-2.11.32-glibc-2.2]$
-------------------------------------------------

Please, help needed...
View user's profileFind all posts by exxSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
Are you trying to debug php scripts under Apache or using standalone php executable? When you listed phpinfo did you get it from Apache or from this php ?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Apr 2005
Posts: 5
Location: Moscow
Reply with quote
I am running standalone script from linux
console, no Apache-web-stuff involved ( so php -i show all
loaded modules) Here is the plain console session "foto":

---directory listing---------
[alex@exx dbg-cli-2.11.32-glibc-2.2]$ ls -l
итого 324
-rw-r--r-- 1 alex alex 3023 Янв 31 02:37 COPYING
-rwxrwxr-x 1 root root 311432 Фев 1 04:23 dbg-cli
-rw-r--r-- 1 alex alex 2276 Фев 1 04:24 README
-rwxr-xr-x 1 alex alex 66 Апр 13 20:23 test.php
-------------------------------

-------test.php content------------
[alex@exx dbg-cli-2.11.32-glibc-2.2]$ cat test.php
<?php
$var="this damn ";
echo "$var error drives me mad Smile\n";
?>
------------------------------

-----script is vivid and running Smile --------------------
[alex@exx dbg-cli-2.11.32-glibc-2.2]$ php test.php
Content-type: text/html
X-Powered-By: PHP/4.3.10

this damn error drives me mad Smile
----------------------------------------------------------------

--------------but....--------------------------------------------
[alex@exx dbg-cli-2.11.32-glibc-2.2]$ ./dbg-cli
DBG php debugger, version 2.11.32, Copyright 2001, 2005, Dmitri Dmitrienko, www.nusphere.com
dbg>file test.php
Reading symbols from test.php...done.
dbg>run

Program exited.
Session start timeout has expired.
Program is not being run.
dbg>q
---------------------------------------

While dealing with the Perl I never had any trouble with debuggiing,
because Perl uses build-in debugger, but PHP hasn't that feature.
I just can't understand: where dbg-cli is trying to connect to?
May be, debugging server should be running on "localhost" and listening port 7869?
Or what? How to debug simple "hello world" 2-liner script ?
View user's profileFind all posts by exxSend private message
time out


Joined: 13 Apr 2005
Posts: 5
Location: Moscow
Reply with quote
running phpinfo() inside standalone script produces the same output to console
as any *.php requested via localhost apache web server.
In both cases it shows that dbg module is loaded...
View user's profileFind all posts by exxSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
a) make sure php executable is in the PATH and dbg-cli finds it. Just run
Code:
show cgiexec
To change this path you can run
Code:
set cgiexec
. If you want dbg-cli to "remember" the valie you may want to run dbg-cli --cgi=/path/to/php or put all the startup commands to ~/.dbgcli_init

b) make sure dbg module is compatible with php executable you're trying to run with. Php may warn that MODULE IS COMPILED WITH DIFFERENT APINO etc...

c) try to play with this package that I compiled for you
http://forum.nusphere.com/sshot/dbg-cli-sample-2.11.32.tar.gz
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Apr 2005
Posts: 5
Location: Moscow
Reply with quote
Of course it is, otherwise I wouldn't be able to start dbg-cli.
Quote:
>a) make sure php executable is in the PATH and dbg-cli finds it.


They perfectly match Smile
Quote:
b)make sure dbg module is compatible with php executable you're trying to run


this debugger session shows that for dbg-cli to work correctly all map__root variables must be set and HTTP mode should be activated.
Code:

[alex@exx alex]$ dbg-cli
DBG php debugger, version 2.11.32, Copyright 2001, 2005, Dmitri Dmitrienko, www.nusphere.com
dbg>show maplocalroot
/var/www/htdocs/.
dbg>show mapremoteroot
/var/www/htdocs/.
dbg>show mapurlroot   
http://localhost/.
dbg>file /var/www/htdocs/t.php
Reading symbols from /var/www/htdocs/t.php...done.
dbg>run

Program exited.
HTTP host is not found. Please, check URL:
        /var/www/htdocs/t.php
Program is not being run.
dbg>

but after starting apache web server.... it works on Linux! Spasibo!
Well... It would be nice to see "graph display" playing correctly in ddd Smile))
View user's profileFind all posts by exxSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
Quote:
but after starting apache web server.... it works on Linux!

So I think everything is solved now, right?
View user's profileFind all posts by dmitriSend private messageVisit poster's website
solved, thanks


Joined: 13 Apr 2005
Posts: 5
Location: Moscow
Reply with quote
Yes, it runs on RH-Linux.
View user's profileFind all posts by exxSend private message
"Session start timeout has expired" *solved*
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