Re: [PHP] Re: Debugger

2002-05-13 Thread José León Serna

Hello:
 If there was at least some links on the PHP.net site, that would help
 people to know they're available.

http://www.php.net/manual/en/debugger.php

Regards.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-12 Thread Michael Kimsal

Jose Leon wrote:

 
 It would be nice that php itself incoporates a system to debug php 
 programs, like in PHP 3, in that way a development tool for php would 
 be enabled to debug modifying the php.ini with debug.enabled=true and 
 listening to a port. The system will work on any php distribution 
 because will be part of php itself. Why the debugger was removed from 
 PHP 3?


I think it's pretty obvious it was removed during the PHP4
development so that Zend would have a 'value add' to sell later.

That's the cynical part of me answering, obviously, and I've
never heard an answer one way or another why it was removed,
but the timing seems pretty remarkable.

Michael Kimsal
http://www.logicreate.com
734-480-9961


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-12 Thread Rasmus Lerdorf

That's just not the case.  The debugger in PHP 3 would not work at all in
PHP 4 and would need a complete rewrite.  So, being cynical you might say
that someone should have written a debugger for PHP 4 and the fact that
nobody did was the conspiracy, but it makes no sense to say it was removed
for conspiracy reasons.  I mean if the PHP 3 debugging code worked with
PHP 4, then you could just take the code from PHP 3 and use it.  It's not
like it is deleted from CVS.

-Rasmus

On Sun, 12 May 2002, Michael Kimsal wrote:

 Jose Leon wrote:

 
  It would be nice that php itself incoporates a system to debug php
  programs, like in PHP 3, in that way a development tool for php would
  be enabled to debug modifying the php.ini with debug.enabled=true and
  listening to a port. The system will work on any php distribution
  because will be part of php itself. Why the debugger was removed from
  PHP 3?


 I think it's pretty obvious it was removed during the PHP4
 development so that Zend would have a 'value add' to sell later.

 That's the cynical part of me answering, obviously, and I've
 never heard an answer one way or another why it was removed,
 but the timing seems pretty remarkable.

 Michael Kimsal
 http://www.logicreate.com
 734-480-9961


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-12 Thread Michael Kimsal

Rasmus Lerdorf wrote:
 That's just not the case.  The debugger in PHP 3 would not work at all in
 PHP 4 and would need a complete rewrite.  So, being cynical you might say
 that someone should have written a debugger for PHP 4 and the fact that
 nobody did was the conspiracy, but it makes no sense to say it was removed
 for conspiracy reasons.  I mean if the PHP 3 debugging code worked with
 PHP 4, then you could just take the code from PHP 3 and use it.  It's not
 like it is deleted from CVS.
 


I'll stand corrected on that.  I'd not looked at the code closely enough 
to know if there were major compatibility problems.

Are there any movements to get things like the stack trace module and 
the Russian dbg debugger module into the standard PHP distribution?

If there was at least some links on the PHP.net site, that would help
people to know they're available.







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-11 Thread Jose Leon

Hello:
 He said php -l will let you know where your syntax errors are.
And what this has to do with my question? I was asking for a debugger, 
not for an error report. I want a mechanism to debug php programs step 
by step, watch variables and so on.

Regards.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-11 Thread Jose Leon

Hello:
 I think the OP has already looked at it, and wanted something 
 better :)

Yes, that's right, but I'm not saying dbg isn't good, I just said is 
too much complicated (AFAIK):
-Must have a listener running
-Use COM to interface with it
-User installation too hard:
 Change php.ini to load the extension
 Keep track of the php version and the extension version

I really like the Komodo solution, just copy a dll and it changes the 
php.ini for you. But I still must keep track of the PHP version.

It would be nice that php itself incoporates a system to debug php 
programs, like in PHP 3, in that way a development tool for php would 
be enabled to debug modifying the php.ini with debug.enabled=true and 
listening to a port. The system will work on any php distribution 
because will be part of php itself. Why the debugger was removed from 
PHP 3?

Regards.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-10 Thread 1LT John W. Holmes

  php -l will let you know where your syntax errors are.
 
 What?
 

He said php -l will let you know where your syntax errors are.

Helping out where I can,
---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-10 Thread Jason Wong

On Saturday 11 May 2002 04:07, Austin Marshall wrote:
 Jose Leon wrote:
 php -l will let you know where your syntax errors are.
 
  What?
 
  Regards

 If you invoke the interpreter from the command line (CGI).  You can use
 the -l flag to enable lint mode... that will check your script for parse
 errors.  So in a way, PHP does have a debug mode.

He wants a /real/ debugger. One in which you can step through instructions, 
set break points, examine state of variables etc.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Integrity has no need for rules.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-10 Thread Rasmus Lerdorf

See DBG (http://dd.cron.ru/dbg/)

On Sat, 11 May 2002, Jason Wong wrote:

 On Saturday 11 May 2002 04:07, Austin Marshall wrote:
  Jose Leon wrote:
  php -l will let you know where your syntax errors are.
  
   What?
  
   Regards
 
  If you invoke the interpreter from the command line (CGI).  You can use
  the -l flag to enable lint mode... that will check your script for parse
  errors.  So in a way, PHP does have a debug mode.

 He wants a /real/ debugger. One in which you can step through instructions,
 set break points, examine state of variables etc.

 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *

 /*
 Integrity has no need for rules.
 */

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Debugger

2002-05-10 Thread Jason Wong

On Saturday 11 May 2002 12:17, Rasmus Lerdorf wrote:
 See DBG (http://dd.cron.ru/dbg/)

I think the OP has already looked at it, and wanted something better :)

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
Never commit yourself!  Let someone else commit you.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php