Author Topic: I was sick of PHP error reporting, so I built this  (Read 5286 times)

0 Members and 2 Guests are viewing this topic.

Offline JL235

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +13/-0
    • View Profile
    • Play My Code
I was sick of PHP error reporting, so I built this
« on: July 06, 2012, 03:21:08 am »
About a month ago I finally decided enough was enough. PHP error errors just sucks, so I sat down and thought about building something I'd actually enjoy seeing.

This is the result, PHP Error. It replaces the output with a fully syntax highlighted stack trace, with code snippets, and makes some error messages more meaningful. There is an example on the site, and it works for ajax requests too out of the box.

I've found it surprisingly productive to use. I get errors fixed in 2 seconds instead of 10, and although that sounds minor, it helps to stop those long coding sessions from dragging.

It's also designed to be trivial to import; just two lines at the start of your site, or you can import using your php.ini file, allowing you to keep it out of your projects. I do the latter, as it allows me to easily keep it out of a live site. There are instructions on usage via it's GitHub page.

I hope others find it as useful as I do.
Build games in the browser at PlayMyCode.com, @playmycode

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: I was sick of PHP error reporting, so I built this
« Reply #1 on: July 06, 2012, 05:02:36 am »
This looks great !

And damn, the website is awesome
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: I was sick of PHP error reporting, so I built this
« Reply #2 on: July 06, 2012, 08:46:22 am »
Wow that looks very cool and useful! Also grrreat website.
I'm not a nerd but I pretend:

Offline JL235

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +13/-0
    • View Profile
    • Play My Code
Re: I was sick of PHP error reporting, so I built this
« Reply #3 on: July 07, 2012, 08:02:09 pm »
Thanks, I'm glad people like it.
Build games in the browser at PlayMyCode.com, @playmycode

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: I was sick of PHP error reporting, so I built this
« Reply #4 on: July 08, 2012, 12:47:56 am »
Looks pretty great :D

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: I was sick of PHP error reporting, so I built this
« Reply #5 on: July 11, 2012, 05:32:24 pm »
I posted it on Hacker News, I'm sure it'll reach a much broader audience there, I can't wait to see the comments.

Offline NanoWar

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 140
  • Rating: +18/-6
    • View Profile
Re: I was sick of PHP error reporting, so I built this
« Reply #6 on: July 11, 2012, 07:55:41 pm »
The code looks very very nice and clean. What IDE did you use? Comments are also great.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: I was sick of PHP error reporting, so I built this
« Reply #7 on: July 12, 2012, 02:48:40 am »
That looks like a really awesome error tracking tool :o The UI and design are great.

I'll try it when I get the chance.




Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: I was sick of PHP error reporting, so I built this
« Reply #8 on: July 12, 2012, 04:03:26 am »
It looks like a very nice and useful tool!
I haven't tried it yet, but can it also rickroll you? D: :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline JL235

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +13/-0
    • View Profile
    • Play My Code
Re: I was sick of PHP error reporting, so I built this
« Reply #9 on: July 12, 2012, 04:53:19 am »
It was mostly written in SublimeText2, but I've since moved back to gVim.

I also ran it through webstorm and send studio a few weeks ago, which caught two minor bugs. But tbh I wasn't very impressed with their error reporting, as I got 100s of non-errors reported too (mostly where they were just plain wrong).
Build games in the browser at PlayMyCode.com, @playmycode

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: I was sick of PHP error reporting, so I built this
« Reply #10 on: July 13, 2012, 01:18:50 am »
I don't really trust error-finders anymore except where they're realtime as I type and tied to an established IDE like Visual Studio. Otherwise I just go with Notepad++ or geany and deal with the errors as it runs. Which this project would be good for haha




Offline JL235

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +13/-0
    • View Profile
    • Play My Code
Re: I was sick of PHP error reporting, so I built this
« Reply #11 on: July 13, 2012, 02:32:44 pm »
Error finders are awesome in static languages, because they are correct. In dynamic languages they often have to do a lot of guess work and prediction, or require you adding static type hints all over the place, in which case use a static language. I've also had JSLint be unable to parse large blocks of my JavaScript.

However syntax checkers are very useful, just to tell you if it will even compile or not, regardless of if there are any obvious bugs.
Build games in the browser at PlayMyCode.com, @playmycode

Offline Netham45

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2103
  • Rating: +213/-4
  • *explodes*
    • View Profile
Re: I was sick of PHP error reporting, so I built this
« Reply #12 on: July 14, 2012, 04:23:52 pm »
I'm definitely going to have to give this a try, looks really nifty.

Just a couple suggestions:
1) Allow it to be restricted to a small number of calling IPs (Ex. I want logs for my sites, but I don't want some random person getting the source if he triggers an error). This could be done just by checking a text file with a list of IPs in it or such. (I'm actually not sure if you have this implemented or not, I haven't had a chance to use it yet)

2) Make your license a bit more prominent, it was a bit hard to track down.
Omnimaga Admin

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: I was sick of PHP error reporting, so I built this
« Reply #13 on: July 15, 2012, 03:02:26 am »
For 1), maybe support for a custom filter could be added. Some may want to filter by IP, others by account type (admin/user).
Ndless.me with the finest TI-Nspire programs

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: I was sick of PHP error reporting, so I built this
« Reply #14 on: July 15, 2012, 03:04:29 am »
Now that is awesome. I don't do much coding, but in some occasions I messed with PHP code before, and when an error occurs, yes it was annoying to debug. Good job :)