-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|691|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Showcase Home -> Functions Libraries


 
JL235
Created : 07 July 2012
Edited : 07 July 2012
System : Cross Platform
Language : Flash

PHP Error

Better error reporting in PHP

PHP Error
GitHub repo
Screenshots
This is a library I recently wrote to improve the error reporting in PHP, which tbh, just plain sucks.

It replaces the output with a fully syntax highlighted stack trace, with code snippets, better error messages, and a lot more. Most of all, it tries to make this as quick and easy to read as possible, allowing you to debug faster.

Works for Ajax too, where an error will cause the JS callback to be put on hold, and display the error in the browser.



You can then debug and fix the issue, and hit retry to rerun, with no page refresh required. This needs no changes to your JS, or special plugins to work.

Instructions are also provided here on the different ways you can setup PHP Error, including allowing you to keep it entirely seperate from your projects. That allows you to trivially keep it out of your deploments.

Since building this, I've found it far more productive then the standard PHP error reporting. I hope others find it useful too.

 

Comments


Thursday, 20 September 2012, 02:56
Stealth
This is an extremely useful and well designed tool.
Thursday, 20 September 2012, 12:28
JL235
Thanks!