Built-in Debugging

Built-in Debugging

am 16.10.2009 02:37:56 von Raymond Irving

--0-915113529-1255653476=:78925
Content-Type: text/plain; charset=us-ascii

Hello,


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

I kjnow there's xdebug but it's sometimes difficult to get it working. I'm hopoing that PHP will one day have intgrated debuging features that can be easily enabled or disabled:


enable_debug(true);

debug_console("Hello world!'); // sends an output to the console of the debugger.


?>

--0-915113529-1255653476=:78925--

Re: Built-in Debugging

am 16.10.2009 14:21:30 von Al

Raymond Irving wrote:
> Hello,
>
>
> Will be ever see built-in debugging features for PHP?
>
> I kjnow there's xdebug but it's sometimes difficult to get it working. I'm hopoing that PHP will one day have intgrated debuging features that can be easily enabled or disabled:
>
> >
> enable_debug(true);
>
> debug_console("Hello world!'); // sends an output to the console of the debugger.
>
>
> ?>
>

Personally, I've found that turning on "error_reporting(E_ALL)",
debug_backtrace() and debug_print_backtrace() quite adequate for most situations.

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

RE: Built-in Debugging

am 16.10.2009 14:36:16 von 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: Built-in Debugging

am 16.10.2009 15:04:16 von 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: Built-in Debugging

am 16.10.2009 15:05:26 von Ashley Sheridan

--=-IpxgCHOoqKqGil45dUqK
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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



--=-IpxgCHOoqKqGil45dUqK--

Re: Built-in Debugging

am 16.10.2009 15:13:22 von 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: Built-in Debugging

am 16.10.2009 15:15:27 von Bob McConnell

From: Ashley Sheridan

> On Fri, 2009-10-16 at 09:04 -0400, Al wrote:
>> Bob McConnell wrote:
>> > From: Raymond Irving
>> >=20
>> >> Will be ever see built-in debugging features for PHP?
>> >=20
>> > 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.
>> >=20
>> > 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.
>> >=20
>> > Bob McConnell
>>=20
>> phpEdit, a super IDE, has an extensive suite of integrated debug
tools.
>>=20
>=20
> Real coders don't use debugging tools, comments and output statements
> are all you need ;)
>=20
> 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: Built-in Debugging

am 16.10.2009 15:20:13 von 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: Built-in Debugging

am 16.10.2009 15:38:59 von David Murphy

--=======AVGMAIL-22EF490B=======
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

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:ash@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



--=======AVGMAIL-22EF490B=======
Content-Type: multipart/alternative;
boundary="=======AVGMAIL-6318038A======="

--=======AVGMAIL-6318038A=======
Content-Type: text/plain; x-avg=cert; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Content-Description: "AVG certification"


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 0=
6:32:00

--=======AVGMAIL-6318038A=======--

--=======AVGMAIL-22EF490B=======
Content-Type: text/plain; charset=us-ascii

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