by bjourne · 13y ago · 0 comments
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 :)
Though they're often known as merely "notifications", that's how Growl calls them and libnotify... well no need to spell it out.