"Session start timeout has expired" *solved* |
|
---------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 [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... |
||||||||||||
|
|
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 \n"; ?> ------------------------------ -----script is vivid and running -------------------- [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 ---------------------------------------------------------------- --------------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 ? |
||||||||||||
|
time out |
|
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... |
||||||||||||
|
Site Admin
|
a) make sure php executable is in the PATH and dbg-cli finds it. Just run
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 |
||||||||||||||||
|
|
Of course it is, otherwise I wouldn't be able to start dbg-cli.
They perfectly match
this debugger session shows that for dbg-cli to work correctly all map__root variables must be set and HTTP mode should be activated.
but after starting apache web server.... it works on Linux! Spasibo! Well... It would be nice to see "graph display" playing correctly in ddd )) |
||||||||||||||||||
|
Site Admin
|
So I think everything is solved now, right? |
||||||||||||||
|
solved, thanks |
|
Yes, it runs on RH-Linux.
|
||||||||||||
|
"Session start timeout has expired" *solved* |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by