|  | 
			
	
 
|  | Session start timeout with dbg-cli |  | 
 
	| 
 
 
			| Joined: 15 Jan 2004 |  | Posts: 7 |  |  |    |  | 
	
		|  Posted: Wed Jan 14, 2004 4:30 pm |  |  |  |  
		|  |  |  On a RH9 machine running php 4.3.4, I get the session timeout trying to debug a php script in cli mode on a local machine:
  	 	| $ dbg-cli
 DBG php debugger, version 2.11.0, Copyright 2000, 2003, Dmitri Dmitrienko, www.nusphere.com/dbg
 dbg>file phpinfo.php
 Reading symbols from /home/jks/data/learn/php/phpinfo.php...done.
 dbg>run
 
 Program exited.
 Session start timeout has expired.
 Program is not being run.
 dbg>
 
 | 
phpinfo() says PHP has the debugger installed:
  	 	| $ php -i
 ...
 This program makes use of the Zend Scripting Language Engine:
 Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
 with DBG v2.11.23, (C) 2000,2001,2002,2003, by Dmitri Dmitrienko
 with Zend Extension Manager v1.0.0, Copyright (c) 2003, by Zend Technologies
 with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend Technologies
 ...
 
 | 
php.ini has the following dbg items:
  	 	| ...
 extension=dbg.so
 
 [Debugger]
 debugger.enabled=On
 debugger.profiler_enabled=On
 
 ...
 
 [Zend]
 zend_optimizer.optimization_level=15
 zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-2.1.0
 zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-2.1.0
 zend_extension=/usr/lib/php4/dbg.so
 zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
 zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
 
 
 | 
I saw a couple of other posts at zend-optimizer-and-debugging-problem-t214.html  and segfaults-using-dbg-t169.html  that led me to modify my the Zend section of my php.ini and try it without the optimizer:
  	 	| [Zend] zend_extension=/usr/lib/php4/dbg.so
 
 | 
I got the same problem, and I also tried it after commenting out the Zend section completely.  In both cases, I still get the debugger registering as follows after a php -i, but still the timeout:
  	 	| This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
 with DBG v2.11.23, (C) 2000,2001,2002,2003, by Dmitri Dmitrienko
 
 | 
Any ideas on what I could be doing wrong? |  
	| 
 |  |  | 
 |  |  |  | 
 |  | 
 |  |  |  | 
 |  | 
 |  |  |  | 
 |  | 
 |  |  |  | 
 
	| 
 
 
			| Joined: 15 Jan 2004 |  | Posts: 7 |  |  |    |  | 
	
		|  Posted: Thu Jan 15, 2004 5:12 am |  |  |  |  
		|  |  |  I was using Apache 2.0, and I read some concerns about that so I downgraded to Apache 1.3.29 and got the same problem.
 
The debugger is installed:
  	| Quote: |  	| This program makes use of the Zend Scripting Language Engine:
 Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies with DBG v2.11.23, (C) 2000,2001,2002,2003, by Dmitri Dmitrienko
 
 | 
and loaded:
  	| Quote: |  	| DBG php debugger, version 2.11.23, Copyright 2001, 2002, Dmitri Dmitrienko, www.nusphere.com/dbg
 
 Version 	2.11.23
 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
 
 | 
I try to debug the file and get the following:
  	 	| dbg>set mode 1
 dbg>set mapurlroot http://localhost/
 dbg>set mapremoteroot /usr/local/apache/htdocs/
 dbg>set maplocalroot /usr/local/apache/htdocs/
 dbg>file /usr/local/apache/htdocs/phpinfo.php
 Reading symbols from /usr/local/apache/htdocs/phpinfo.php...done.
 dbg>run
 
 Program exited.
 Session start timeout has expired.
 Program is not being run.
 dbg>
 
 | 
At this point I have tried debugging a script both through Apache and the simple way described in the README from the source distribution of dbg-cli-2.11.0:
  	| Quote: |  	| After you invoke dbg-cli, you may want to open a script and step though it
 
 dbg>file myfile.php
 dbg>run
 dbg>step
 
 | 
Any ideas? |  
	| 
 |  |  | 
 |  | Is the CLI using the correct port? |  | 
 |  | Same problem here. |  | 
 |  | aHA! |  | 
 
	| 
	
		| 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
 
 |  |  
	|  |  |  |