Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
General Discussion
»
Technology and Development
»
Web Programming and Design
»
I was sick of PHP error reporting, so I built this
« previous
next »
Print
Pages: [
1
]
2
Go Down
Author
Topic: I was sick of PHP error reporting, so I built this (Read 5303 times)
0 Members and 1 Guest are viewing this topic.
JL235
LV3
Member (Next: 100)
Posts: 57
Rating: +13/-0
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.
Logged
+2/-0 karm for this message
Build games in the browser at
PlayMyCode.com
,
@playmycode
Adriweb
Editor
LV10
31337 u53r (Next: 2000)
Posts: 1708
Rating: +229/-17
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
Logged
My calculator programs
TI-Planet.org
co-admin.
TI-Nspire Lua programming
:
Tutorials
|
API Documentation
aeTIos
Nonbinary computing specialist
LV12
Extreme Poster (Next: 5000)
Posts: 3915
Rating: +184/-32
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.
Logged
I'm not a nerd but I pretend:
JL235
LV3
Member (Next: 100)
Posts: 57
Rating: +13/-0
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.
Logged
Build games in the browser at
PlayMyCode.com
,
@playmycode
Juju
Incredibly sexy mare
Coder Of Tomorrow
LV13
Extreme Addict (Next: 9001)
Posts: 5730
Rating: +500/-19
Weird programmer
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
Logged
Remember the day the walrus started to fly...
I finally cleared
my sig
after 4 years you're happy now?
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
.
Munchor
LV13
Extreme Addict (Next: 9001)
Posts: 6199
Rating: +295/-121
Code Recycler
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.
Logged
NanoWar
LV4
Regular (Next: 200)
Posts: 140
Rating: +18/-6
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.
Logged
Deep Toaster
So much to do, so much time, so little motivation
Administrator
LV13
Extreme Addict (Next: 9001)
Posts: 8217
Rating: +758/-15
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
The UI and design are great.
I'll try it when I get the chance.
Logged
Sorunome
Fox Fox Fox Fox Fox Fox Fox!
Support Staff
LV13
Extreme Addict (Next: 9001)
Posts: 7920
Rating: +374/-13
Derpy Hooves
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?
Logged
THE GAME
Also, check out
my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!
JL235
LV3
Member (Next: 100)
Posts: 57
Rating: +13/-0
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).
Logged
Build games in the browser at
PlayMyCode.com
,
@playmycode
Deep Toaster
So much to do, so much time, so little motivation
Administrator
LV13
Extreme Addict (Next: 9001)
Posts: 8217
Rating: +758/-15
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
Logged
JL235
LV3
Member (Next: 100)
Posts: 57
Rating: +13/-0
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.
Logged
Build games in the browser at
PlayMyCode.com
,
@playmycode
Netham45
LV11
Super Veteran (Next: 3000)
Posts: 2103
Rating: +213/-4
*explodes*
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.
Logged
Omnimaga Admin
ExtendeD
CoT Emeritus
LV8
Addict (Next: 1000)
Posts: 825
Rating: +167/-2
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).
Logged
Ndless.me
with the finest TI-Nspire programs
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
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
Logged
Print
Pages: [
1
]
2
Go Up
« previous
next »
Omnimaga
»
Forum
»
General Discussion
»
Technology and Development
»
Web Programming and Design
»
I was sick of PHP error reporting, so I built this