How to run arbitrary multi-line Javascript in Firefox’s Firebug Debugger

by Cappy Popp on September 27, 2007

in Programming

I use the console in Firebug all the time to test out one-liners in Javascript (like regexes for instance), but I had no idea that you could type multiple lines of JS in Firebug and run it. As I should have known of course they implemented this. Here’s how.

You can either just paste a block of code into the console edit field (that’s the line at the bottom of the console window that starts with ‘>>>’ and has a flashing cursor), or click the little red icon at the lower right side of the console window.

Either way, it brings up the Firebug JavaScript editor window:

Just click the ‘Run’ button at the bottom, tweak as necessary, and copy into your final desitination!

Popularity: 4% [?]

blog comments powered by Disqus

Previous post: Inner Circle keeps your Facebook News Feed from being hijacked

Next post: Great review of Inner Circle – like Facebook 2.0