|
| [resolved] DBG 2.15 not working, at all | |
Joined: 29 May 2008 |
Posts: 9 |
|
|
|
Posted: Wed May 28, 2008 2:45 pm |
|
|
|
|
|
Haven't gotten the slightest debugger-like behavior out of it.
I am trying to run locally on a Linux machine, using the CLI and running scripts directly (which would, I think, be the simplest case).
I put the so in the lib directory under the name dbg.so-5.1.x (I am running PHP 5.1.6)
I put the following at the end of the php.ini
extension="dbg.so-5.1.x"
[debugger]
debugger.enabled = On
debugger.profiler_enabled = Off
|
phpinfo returns the following:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with DBG v2.15.5, (C) 2000,2007, by Dmitri Dmitrienko |
I wrote a simple PHP script:
<?
function f() {
echo "hello, there";
}
f();
?> |
And here's what happens (or fails to happen):
DBG php debugger, version 2.15.5, Copyright 2001, 2007, Dmitri Dmitrienko, www.nusphere.com
dbg>file myfile.php
Reading symbols from myfile.php...done.
dbg>run
Program exited.
Session start timeout has expired.
Program is not being run.
|
No plausible perturbation I could think of in any of these steps made the slightest observable difference.
So tell me, is it possible to get DBG to do anything? If so, how?
|
|
|
| | |
| [NOT resolved] DBG 2.15 not working, at all | |
Joined: 29 May 2008 |
Posts: 9 |
|
|
|
Posted: Sun Jun 01, 2008 11:29 am |
|
|
|
|
|
Quote: | DBG 2.15 (free version) is not compatible with php opcode caches like eAccelerator. |
Good catch, but no, still doesn't work.
I commented the eAccelerator description out of /etc/php.ini and the phpinfo() no longer reports it as present, but DBG maintains its sphinx-like silence on the subject.
DBG php debugger, version 2.15.5, Copyright 2001, 2007, Dmitri Dmitrienko, www.nusphere.com
dbg>file myfile.php
Reading symbols from myfile.php...done.
dbg>run
Program exited.
Session start timeout has expired.
Program is not being run.
dbg>list
No symbol table is loaded. Use the "file" command.
dbg> |
Any ideas of how I might go about debugging the debugger? Thanks.
Quote: | Quis custodiet ipsos custodes? (Who watches the watchman?)
-- Juvenal
|
|
|
|
| | |
Joined: 29 May 2008 |
Posts: 9 |
|
|
|
Posted: Wed Jun 04, 2008 5:44 pm |
|
|
|
|
|
dmitri wrote: | is there only one php in your system? |
AFAIK. Certainly, when I run PHP from my home directory, the phpinfo() command says that I included the DBG plug-in.
dmitri wrote: | will it see its configuration file if you run it from say your home directory? |
See above.
dmitri wrote: | did you set debugger PORT value to 7869? |
I modified the /etc/php.ini to include the lines
debugger.port=7869
debugger.host=clienthost
And I tried running the CLI with and without --port=7869
Needless to say, no change in the program's behavior was observed. Even helloworld.c is no more stoically unvarying in its indifferent to external circumstances than is DBG.
|
|
|
| | |
Site Admin
Joined: 13 Jul 2003 |
Posts: 8342 |
|
|
|
Posted: Wed Jun 04, 2008 5:57 pm |
|
|
|
|
|
Quote: | I modified the /etc/php.ini to include the lines |
I meant debugger port in dbg-cli: set port 7869
also, it's not clear if you set path to php: set cgiexec /usr/bin/php-cgi
and turned http mode off: set mode off
|
_________________ The PHP IDE team
|
|
| | |
Joined: 29 May 2008 |
Posts: 9 |
|
|
|
Posted: Wed Jun 04, 2008 6:07 pm |
|
|
|
|
|
Thanks for the quick reply.
dmitri wrote: |
I meant debugger port in dbg-cli: set port 7869
also, it's not clear if you set path to php: set cgiexec /usr/bin/php-cgi
and turned http mode off: set mode off |
I didn't before, but now:
Quote: | DBG php debugger, version 2.15.5, Copyright 2001, 2007, Dmitri Dmitrienko, www.nusphere.com
dbg>set port 7869
dbg>set mode off
dbg>set cgiexec /usr/bin/php-cgi
CGI handler "/usr/bin/php-cgi" not found.
dbg>set cgiexec /usr/bin/php
dbg>file myfile.php
Reading symbols from myfile.php...done.
dbg>run
Program exited.
Session start timeout has expired.
Program is not being run.
dbg>quit |
Quote: | A foolish consistency is the hobgoblin of little minds.
-- Emerson
|
|
|
|
| | |
Joined: 29 May 2008 |
Posts: 9 |
|
|
|
Posted: Wed Jun 04, 2008 7:33 pm |
|
|
|
|
|
dmitri wrote: | if php-cgi is not in /usr/bin, where is it?
Is what you run php-cgi or php cli?
Debugger console supports only HTTP mode and CGI mode. Php cli is not supported (at the moment). |
I don't know and neither does "find" on my computer. Google doesn't know much on the subject either.
What I run from the command line is "php". Is that CGI or CLI? How can I tell? Is there a pre-compiled version of php-cgi 5.1.6 for Linux I could download?
|
|
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
|
|
|
| |