NuSphere Forums Forum Index
NuSphere Forums
Reply to topic


Joined: 29 May 2008
Posts: 9
Reply with quote
This is really an impressive product: it is capable of doing the exact same thing under a wide range of circumstances. If that one thing were useful, it would be really great.

So, yes, I downloaded and rebuilt PHP so it was "cgi" instead of "cli":
Quote:
/home/michael/php-5.2.6/sapi/cgi/php-cgi --version
PHP 5.2.6 (cgi) (built: Jun 5 2008 18:48:09)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

The dumpinfo under 5.2 isn't as helpful as the one under 5.1 but it looks like it's reading the same ini file.
Needless to say, I got the same behavior from DBG:
Quote:
dbg-cli-2.15.5-glibc-2.2/dbg-cli
DBG php debugger, version 2.15.5, Copyright 2001, 2007, Dmitri Dmitrienko, www.nusphere.com
dbg>set cgiexec /home/michael/php-5.2.6/sapi/cgi/php-cgi
dbg>set mode off
dbg>file myfile.php
Reading symbols from myfile.php...done.
dbg>run

Program exited.
Session start timeout has expired.
Program is not being run.

Quote:
People rarely need to debug their php scripts under CLI. What they need the most is debugging their web sites and DBG is very strong in this area. Did you by any chance try NuSphere PhpED 5.2 that comes with DBG 3.2.14?

Are you actually suggesting that since I cannot run DBG in the simplest, easiest case, I should purchase a product in the hope that it will run in a networked, multi-server case? Until we can successfully evaluate DBG, we aren't purchasing anything based on it.
View user's profileFind all posts by mlortonSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
/home/michael/php-5.2.6/sapi/cgi/php-cgi --version
PHP 5.2.6 (cgi) (built: Jun 5 2008 18:48:09)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Seems you forgot to install debugger otherwise this message would shouw its version.

Quote:
This is really an impressive product: it is capable of doing the exact same thing under a wide range of circumstances. If that one thing were useful, it would be really great.

How can you blame the product if you even did not install it Smile?

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


Joined: 29 May 2008
Posts: 9
Reply with quote
dmitri wrote:
Seems you forgot to install debugger otherwise this message would shouw its version.

Not forgot, but apparently the new version of PHP doesn't read the same php.ini by default. So I did this:
Code:
/home/michael/php-5.2.6/sapi/cgi/php-cgi -c /etc --version

And it said "PHP Warning: PHP Startup: dbg: Unable to initialize module".

Which makes sense! This is the 5.2 PHP and I had install the 5.1 debugger. Finally, an error message I can understand. So I also installed the 5.2 debugger, made a local copy of the php.ini file, and. pointed that one to the 5.2 installation.
Quote:
/home/michael/php-5.2.6/sapi/cgi/php-cgi -c ./php.ini --version
PHP 5.2.6 (cgi) (built: Jun 5 2008 18:48:09)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with DBG v2.15.5, (C) 2000,2007, by Dmitri Dmitrienko

Well, just guess what I got next.

Quote:
dbg-cli-2.15.5-glibc-2.2/dbg-cli
DBG php debugger, version 2.15.5, Copyright 2001, 2007, Dmitri Dmitrienko, www.nusphere.com
dbg>set cgiexec /home/michael/php-5.2.6/sapi/cgi/php-cgi
dbg>set mode off
dbg>file myfile.php
Reading symbols from myfile.php...done.
dbg>run

Program exited.
Session start timeout has expired.
Program is not being run.

It isn't as funny when all your jokes have the same punchline.[/quote]
View user's profileFind all posts by mlortonSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
Well, just guess what I got next.

it's the most expected because still you did not provide path to your php.ini, therefore it was not found, and dbg was not loaded.
There are three ways that will let you get your php.ini found by php:
-copy php.ini to the location where php searches for this file (PREFIX/lib by default). You may want to run phpinfo() to see the location on the top.
-re-run configure for php with --with-config-file-path=/etc command line argument, then make clean, make, and finally make install
-run dbg-cli with environemnt that contains PHPRC variable pointing to php.ini file, for example: PHPRC=/etc/php.ini ./dbg-cli

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


Joined: 29 May 2008
Posts: 9
Reply with quote
I recompiled the php so it would load custom php.ini (and hence the debugging module) without any additional parameters).

I'll just let our studio audience guess what happened next.
View user's profileFind all posts by mlortonSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
I'll just let our studio audience guess what happened next

I bet you got it working.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] DBG 2.15 not working, at all
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 2 of 2  

  
  
 Reply to topic