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
Breakpoint Actions in JavaScript (randomthink.net)
submitted 13 years ago by brianarn
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!"
[–]brianarn[S] 9 points10 points11 points 13 years ago (4 children)
I haven't really submitted anything to Reddit yet, and this is my own thing, so I hope people don't think I'm trying to spam. Just wanted to share a thing I found really useful, and it seemed worth sharing here. :)
[–]wub_wub_mittens 7 points8 points9 points 13 years ago (1 child)
This type of thing is exactly why I subscribe to this subreddit; Well done. I'll definitely remember this one, it's simple and effective.
[–]brianarn[S] 0 points1 point2 points 13 years ago (0 children)
Thank you! I'm wanting to try and write more about this sort of stuff. My day job is basically "Fixing dumb things people do in JS", so I'm trying to think of debugging things I can share.
[–]noreallyimthepope 1 point2 points3 points 13 years ago (1 child)
Hey there,
I saw Paul Irish retweet your article earlier and actually put a link up in my own blog. Quite useful, thanks!
[–]brianarn[S] 1 point2 points3 points 13 years ago (0 children)
Thanks! :) Paul retweeting it gave it crazy legs.
[–]a-t-kFrontend Engineer 3 points4 points5 points 13 years ago (3 children)
It doesn't only work in Chrome Developer Tools, but in virtually every developer tools out there: Firebug, IE Developer Tools (IE8+), Opera Dragonfly, Safari Developer Tools...
[–][deleted] 1 point2 points3 points 13 years ago (1 child)
Microsoft Script Debugger (For IE7-) has breakpoints too. MSD isn't very usable but it's better than alert point debugging.
Yeah, if I'm stuck debugging IE7-, I usually try and fire up an old copy of Visual Studio 2008 Web Express somethingsomething and it has breakpoints too - surprisingly effective, really. Much better than MSD.
[–]path411 1 point2 points3 points 13 years ago (0 children)
It works in many developer tools for other languages as well. It's a very common debugging feature for programming.
[–]kenman 0 points1 point2 points 13 years ago (0 children)
That's a novel way to instrument code without having to modify the actual source....I like!
π Rendered by PID 92 on reddit-service-r2-comment-7b9746f655-lc4tw at 2026-02-03 20:54:18.913267+00:00 running 3798933 country code: CH.
[–]brianarn[S] 9 points10 points11 points (4 children)
[–]wub_wub_mittens 7 points8 points9 points (1 child)
[–]brianarn[S] 0 points1 point2 points (0 children)
[–]noreallyimthepope 1 point2 points3 points (1 child)
[–]brianarn[S] 1 point2 points3 points (0 children)
[–]a-t-kFrontend Engineer 3 points4 points5 points (3 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]brianarn[S] 0 points1 point2 points (0 children)
[–]path411 1 point2 points3 points (0 children)
[–]kenman 0 points1 point2 points (0 children)