News for hackers. Stuff that matters.
Re:An alternative to alert() by derefr on Tuesday February 26, 2013 @06:42PM (#5289458)
> It blocks the thread of execution until dismissed which is a nice feature.

I've wanted a "just wait a minute, Javascript engine; let me look at what you're doing!" API call for quite a while.

Turns out there is one: you can put "debugger;" in any JS code, and (if you have Webkit Devtools or Firebug or what-have-you) it will act as if you had set a breakpoint right at that statement.

Much less diddling with the mouse to set a breakpoint in code you already had open in a text editor. Good complement to console.log :)

Re:An alternative to alert() by 0x0 on Tuesday February 26, 2013 @07:39PM (#5289704)
This is one of most important things I've learned this whole month! Thanks for the tip! :)