Re: debugging methods [was Re: [PHP] save an array?]
| From: | Teodor Cimpoesu | Date: | Sat, 07 Oct 2000 12:35:31 +0000 |
| Subject: | Re: debugging methods [was Re: [PHP] save an array?] | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19031@lists.php.net to get a copy of this message | ||
Hi Alexandertje!
On Sat, 07 Oct 2000, Alexandertje wrote:
> On Fri, Oct 06, 2000 at 07:23:55PM -0500, Matt McClanahan wrote:
> > serialize()
> > http://www.php.net/manual/function.serialize.php
>
> also one of the best debugging aids i've found for php.
> anyone else got other good debugging suggestions?
yeah,
on programming ...
turn error_reporting to E_ALL. The reasone E_ALL exists is to use it.
on loggin ...
configure error_log to be syslog, then in syslog.conf redirect them
to /dev/tty9 or something
or
to a file, and tail -f on it.
on displaying ...
add a sleep() right after your logging commands, so you can follow
them.
on debugging ...
plea Zeev to make that debuger , or least vote on zend.com/poll/
for cloning the Zend team.
on elegance ...
submit your patch for having a backtrace of function calls & args
a la Python, then argue why a try/catch + exception thingy would be
nice. FlameShields on, take care.
-- teodor