Latest Uploads
Extraterre ... .0.1 (zip)

dantheman363

Monty Teas ... Screenie 1

steve_ancell

Santa Clau ... ed his bag

waroffice

manic_platdude.png

spinal

Tetris Clone

steve_ancell

Super blues bros.

spinal

Showcase > Functions Libraries ( Created 07 July 2012 | Last Edited 07 July 2012)

PHP Error - Created by JL235 (Rating 100%)

Better error reporting in PHP
Created using PHP > Cross PlatformView Worklog (0 entries)
PHP Error
GitHub repo
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.

Highslide JS

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.
Highslide JS

Latest Comments

Posted : Thursday, 20 September 2012, 01:56
Stealth


Vote : 5
This is an extremely useful and well designed tool.

Posted : Thursday, 20 September 2012, 11:28
JL235


Thanks!

Latest Posts
Coder's Block
Jayenkai Thu 09:01
Consumer Lockout
9572AD Thu 06:09
Professor Oak, Honest!!
spinal Wed 23:24
Position in Mind
steve_ancell Wed 20:11
Sonic Adventure v0.x
Jayenkai Wed 07:08
FIRST!!!
steve_ancell Wed 03:55
Noel's Graduation
waroffice Wed 02:55
Monkey vs iOS tweaks
spinal Tue 22:51
Fucking Pound Sign Unicode Bullshit Bollocks
Dabz Tue 13:00
Progress / Location Bars
dna Tue 08:55
More

Latest Items
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
rockford Fri 13:14
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
News : Newsletter #170
Dabz Sat 00:34
Showcase : sbfgen
Cower Sat 16:57
More

Who's Online
Jayenkai
Thu, at 15:54
CodersRule
Thu, at 15:40
steve_ancell
Thu, at 15:27
dna
Thu, at 14:33
Dabz
Thu, at 14:02
Mog
Thu, at 13:39
spinal
Thu, at 13:11
rockford
Thu, at 12:45
Cower
Thu, at 12:44
shroom_monk
Thu, at 12:15
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.