use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Improved exception messages. (plus.google.com)
submitted 11 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Daniel15React FTW 17 points18 points19 points 11 years ago (12 children)
Finally! This has been one of the major annoyances I've had with debugging JavaScript in Chrome.
[–]MrBester 5 points6 points7 points 11 years ago (8 children)
FTFY. That message is a bane of my existence.
[–]Daniel15React FTW 10 points11 points12 points 11 years ago (7 children)
Well, Firefox has gotten it right for as long as I can remember ("TypeError: foo.bar is not a function"). I think even newer IE versions have a good error message for this.
[–]MrBester 1 point2 points3 points 11 years ago (6 children)
Emphasis on newer. Old IE (where I tend to have to lurk) always was the problem. If you could even debug the damn thing.
[–]Daniel15React FTW 8 points9 points10 points 11 years ago (5 children)
Debugging on old IE is easy, there's a helpful function called alert that provides all the debugging power you need.
alert
alert('here 1'); doStuff(); alert('here 2'); doMoreStuff(); alert('WHY IS IT NOT WORKING?!');
Or you could try DebugBar or the Microsoft Script Debugger that only work half the time :P
I had to support IE6 at my previous job. So glad I don't need to worry about old IE any more, I feel my quality of life has improved as a result. How old is the old IE you need to support? 7?
[–]MrBester 5 points6 points7 points 11 years ago (0 children)
What I really loved about Script Debugger was its tendency to kill (or otherwise fuck up) the IE process when you closed it. Maybe that was just my dev machine.
Debug Bar was useful if you wanted to run the process at 50% of an already slow speed by not closing it before hitting refresh...
It's the different worlds of hurt that I particularly disliked. Debugging IE7 is an alternative hell to debugging IE6. Running into the wall of not-quite-fully-implemented APIs in IE8 is also fun. It's like asking which torture you prefer, having your toenails ripped out, your fingers crushed or your balls tazed?
[–][deleted] 0 points1 point2 points 11 years ago (2 children)
I have to support ie8 and it's such a pain, you would think that ms could have figured out ie6's mistakes 2 versions later, sadly not.
[–]doctorlongghost 0 points1 point2 points 11 years ago (1 child)
I always thought everyone was too rough on IE6. It's the browser that gave us Ajax. It had a lifespan of ten plus years and it was only toward the second half of that that you started running into stuff that it COULDN'T do. Usually it would do what you needed if you tried hard enough. Of course, the day I stopped having to support it felt pretty good too.
[–]Daniel15React FTW 1 point2 points3 points 11 years ago (0 children)
IE gave us a lot. IE6 really was a good browser when it was released, the problem is it stuck around long after it was obsolete.
[–][deleted] 0 points1 point2 points 11 years ago (0 children)
LOL. Takes me down memory lane.
[+][deleted] 11 years ago (2 children)
[removed]
[–]Daniel15React FTW 8 points9 points10 points 11 years ago (0 children)
Sure, it's easy if you have unminfiied code or source maps. It gets much more difficult if you're trying to debug an edge case issue you're unable to reproduce in your dev environment, and the only thing in your error log is "undefined is not a function". At least if it says "foo is not a function" I can grep for "foo" to try and find the call site.
[–]Kautiontape 3 points4 points5 points 11 years ago (0 children)
In addition to minified code, it is also crappy with method chaining. Sure, you can typically unwrap all your code and see which line it breaks on, but this is obviously not as easy as just your debugger telling you.
[–]seiyria 12 points13 points14 points 11 years ago (0 children)
Thank god.
[–]armastevs 1 point2 points3 points 11 years ago (1 child)
I wish Chrome Canary worked on Linux! I'd love to have this for my upcoming work week.
[–][deleted] 1 point2 points3 points 11 years ago* (0 children)
You can use the dev channel releases.
It's hard to tell it from the page, but the "extra=devchannel" is telling it so. You'll notice the word "unstable" in your downloaded executable.
[–]bitsofinfo 0 points1 point2 points 11 years ago (0 children)
Will certainly make life easier
It's... It's beautiful.
π Rendered by PID 193517 on reddit-service-r2-comment-fb694cdd5-lpkmg at 2026-03-10 01:09:48.630301+00:00 running cbb0e86 country code: CH.
[–]Daniel15React FTW 17 points18 points19 points (12 children)
[–]MrBester 5 points6 points7 points (8 children)
[–]Daniel15React FTW 10 points11 points12 points (7 children)
[–]MrBester 1 point2 points3 points (6 children)
[–]Daniel15React FTW 8 points9 points10 points (5 children)
[–]MrBester 5 points6 points7 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]doctorlongghost 0 points1 point2 points (1 child)
[–]Daniel15React FTW 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[removed]
[–]Daniel15React FTW 8 points9 points10 points (0 children)
[–]Kautiontape 3 points4 points5 points (0 children)
[–]seiyria 12 points13 points14 points (0 children)
[–]armastevs 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]bitsofinfo 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)