Do you bother to write a pretty error page?

Posted by Chacha102 on Stack Overflow See other posts from Stack Overflow or by Chacha102
Published on 2010-03-28T19:39:54Z Indexed on 2010/03/28 19:43 UTC
Read the original article Hit count: 207

Filed under:
|

So, everyone is really used to the errors that PHP gives you. They look kind of like this:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2 bytes) in /path/to/file(437) on line 21

My question is, do you put in the time to make your error pages more useful?

I find that I am able to debug a lot faster using my own error page:

alt text

I find this to be a lot better than the PHP errors because it gives me a stack trace, the usual error message, along with the actual location of the error, and more.

Also, are there any downsides from creating your own development error pages. Obviously you wouldn't want to have a user see this page, but what about during development?

© Stack Overflow or respective owner

Related posts about error

Related posts about php