RE: [PHP] Built-in Debugging

2009-10-16 Thread David Murphy
I have to disagree, while   Exception handling and  the like have their
place. Sometimes when you develop you want to stop execution and  look at
your memory stack to make sure you didn't over look something.

Especially if you are relying on someone  else code  and it's not a project
owned 100% by you.


Just my thoughts, they have their place I use  PhpEd, because it facilitates
this nicely and it VERY customizable from a short hand perspective.

-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: Friday, October 16, 2009 8:05 AM
To: Al
Cc: php-general@lists.php.net
Subject: Re: [PHP] Built-in Debugging

On Fri, 2009-10-16 at 09:04 -0400, Al wrote:

> 
> Bob McConnell wrote:
> > From: Raymond Irving
> > 
> >> Will be ever see built-in debugging features for PHP?
> > 
> > I do not expect there would be. Debuggers are more likely to be 
> > provided by the IDE. For example, in MS-Windows, Visual Studio is 
> > the IDE and can include any of several compilers. It also includes 
> > the debugger, and uses the same front end for all languages. Of 
> > course, Microsoft has it much easier since they only support one 
> > hardware platform (x86) and one OS. Unlike the rest of the world 
> > where tools are more likely to be portable.
> > 
> > For an IDE with debug capabilities, try NetBeans. I am sure there 
> > are others, but that is the only one I have actually looked at.
> > 
> > Bob McConnell
> 
> phpEdit, a super IDE, has an extensive suite of integrated debug tools.
> 


Real coders don't use debugging tools, comments and output statements are
all you need ;)

Thanks,
Ash
http://www.ashleysheridan.co.uk



No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.5.421 / Virus Database: 270.14.20/2440 - Release Date: 10/16/09 
06:32:00
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Built-in Debugging

2009-10-16 Thread Robert Cummings

Al wrote:


Ashley Sheridan wrote:

On Fri, 2009-10-16 at 09:04 -0400, Al wrote:


Bob McConnell wrote:

From: Raymond Irving


Will be ever see built-in debugging features for PHP?

I do not expect there would be. Debuggers are more likely to be provided
by the IDE. For example, in MS-Windows, Visual Studio is the IDE and can
include any of several compilers. It also includes the debugger, and
uses the same front end for all languages. Of course, Microsoft has it
much easier since they only support one hardware platform (x86) and one
OS. Unlike the rest of the world where tools are more likely to be
portable.

For an IDE with debug capabilities, try NetBeans. I am sure there are
others, but that is the only one I have actually looked at.

Bob McConnell

phpEdit, a super IDE, has an extensive suite of integrated debug tools.



Real coders don't use debugging tools, comments and output statements
are all you need ;)

Thanks,
Ash
http://www.ashleysheridan.co.uk





I agree with you and that's why I said in my first message "Personally, I've 
found that turning on "error_reporting(E_ALL)", debug_backtrace() and 
debug_print_backtrace() quite adequate for most situations."


In fact, I don't recall even using debug_backtrace() and debug_print_backtrace() 
in the last couple of years.


I script very robust code and it catches damn near all errors itself.


I find having a custom error handler that uses debug_backtrace() to 
produce a limited stack trace very useful for finding errors sometimes.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



RE: [PHP] Built-in Debugging

2009-10-16 Thread Bob McConnell
From: Ashley Sheridan

> On Fri, 2009-10-16 at 09:04 -0400, Al wrote:
>> Bob McConnell wrote:
>> > From: Raymond Irving
>> > 
>> >> Will be ever see built-in debugging features for PHP?
>> > 
>> > I do not expect there would be. Debuggers are more likely to be
provided
>> > by the IDE. For example, in MS-Windows, Visual Studio is the IDE
and can
>> > include any of several compilers. It also includes the debugger,
and
>> > uses the same front end for all languages. Of course, Microsoft has
it
>> > much easier since they only support one hardware platform (x86) and
one
>> > OS. Unlike the rest of the world where tools are more likely to be
>> > portable.
>> > 
>> > For an IDE with debug capabilities, try NetBeans. I am sure there
are
>> > others, but that is the only one I have actually looked at.
>> > 
>> > Bob McConnell
>> 
>> phpEdit, a super IDE, has an extensive suite of integrated debug
tools.
>> 
> 
> Real coders don't use debugging tools, comments and output statements
> are all you need ;)
> 
> Thanks,
> Ash

No, we simply use debug or ddt to insert machine code directly into
memory. But that tends to get tedious very quickly, so experimenting
with other options is one way to relieve the boredom.

Bob McConnell

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



Re: [PHP] Built-in Debugging

2009-10-16 Thread Al



Ashley Sheridan wrote:

On Fri, 2009-10-16 at 09:04 -0400, Al wrote:


Bob McConnell wrote:

From: Raymond Irving


Will be ever see built-in debugging features for PHP?

I do not expect there would be. Debuggers are more likely to be provided
by the IDE. For example, in MS-Windows, Visual Studio is the IDE and can
include any of several compilers. It also includes the debugger, and
uses the same front end for all languages. Of course, Microsoft has it
much easier since they only support one hardware platform (x86) and one
OS. Unlike the rest of the world where tools are more likely to be
portable.

For an IDE with debug capabilities, try NetBeans. I am sure there are
others, but that is the only one I have actually looked at.

Bob McConnell

phpEdit, a super IDE, has an extensive suite of integrated debug tools.




Real coders don't use debugging tools, comments and output statements
are all you need ;)

Thanks,
Ash
http://www.ashleysheridan.co.uk





I agree with you and that's why I said in my first message "Personally, I've 
found that turning on "error_reporting(E_ALL)", debug_backtrace() and 
debug_print_backtrace() quite adequate for most situations."


In fact, I don't recall even using debug_backtrace() and debug_print_backtrace() 
in the last couple of years.


I script very robust code and it catches damn near all errors itself.

Al...

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



Re: [PHP] Built-in Debugging

2009-10-16 Thread Ashley Sheridan
On Fri, 2009-10-16 at 09:04 -0400, Al wrote:

> 
> Bob McConnell wrote:
> > From: Raymond Irving
> > 
> >> Will be ever see built-in debugging features for PHP?
> > 
> > I do not expect there would be. Debuggers are more likely to be provided
> > by the IDE. For example, in MS-Windows, Visual Studio is the IDE and can
> > include any of several compilers. It also includes the debugger, and
> > uses the same front end for all languages. Of course, Microsoft has it
> > much easier since they only support one hardware platform (x86) and one
> > OS. Unlike the rest of the world where tools are more likely to be
> > portable.
> > 
> > For an IDE with debug capabilities, try NetBeans. I am sure there are
> > others, but that is the only one I have actually looked at.
> > 
> > Bob McConnell
> 
> phpEdit, a super IDE, has an extensive suite of integrated debug tools.
> 


Real coders don't use debugging tools, comments and output statements
are all you need ;)

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] Built-in Debugging

2009-10-16 Thread Al



Bob McConnell wrote:

From: Raymond Irving


Will be ever see built-in debugging features for PHP?


I do not expect there would be. Debuggers are more likely to be provided
by the IDE. For example, in MS-Windows, Visual Studio is the IDE and can
include any of several compilers. It also includes the debugger, and
uses the same front end for all languages. Of course, Microsoft has it
much easier since they only support one hardware platform (x86) and one
OS. Unlike the rest of the world where tools are more likely to be
portable.

For an IDE with debug capabilities, try NetBeans. I am sure there are
others, but that is the only one I have actually looked at.

Bob McConnell


phpEdit, a super IDE, has an extensive suite of integrated debug tools.

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



RE: [PHP] Built-in Debugging

2009-10-16 Thread Bob McConnell
From: Raymond Irving

> Will be ever see built-in debugging features for PHP?

I do not expect there would be. Debuggers are more likely to be provided
by the IDE. For example, in MS-Windows, Visual Studio is the IDE and can
include any of several compilers. It also includes the debugger, and
uses the same front end for all languages. Of course, Microsoft has it
much easier since they only support one hardware platform (x86) and one
OS. Unlike the rest of the world where tools are more likely to be
portable.

For an IDE with debug capabilities, try NetBeans. I am sure there are
others, but that is the only one I have actually looked at.

Bob McConnell

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



RE: [PHP] Built-in Debugging

2009-10-16 Thread Andrea Giammarchi

Specially suited for Ajax interaction, you may be interested into Formaldehyde:
http://code.google.com/p/formaldehyde/

Regards

> Date: Thu, 15 Oct 2009 17:39:14 -0700
> From: xwis...@yahoo.com
> To: php-general@lists.php.net
> Subject: [PHP] Built-in Debugging
> 
> Hello,
> 
> Will be ever see built-in debugging features for PHP?
> 
> I know there's xdebug but it's sometimes difficult to get it working. I'm 
> hoping that PHP will one day have integrated debugging features that can be 
> easily enabled or disabled:
> 
>  
> enable_debug(true);
> debug_console("Hello world!'); // sends an output to the console of the 
> debugger.
> 
> 
> ?>
> 
  
_
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010