tags:

views:

227

answers:

2

I'm frequently testing code that manipulates the DOM. I can paste it and run it in the console then switch to the HTML tab to see if it had the desired effect. Then when I switch back to the console view my code is gone and I have to re-paste it. This is a pain.

What I'd really like is to have the console in a right window and the HTML view in a left window. Then, presumably, I could (ideally) run my code and immediately see the effect on the HTML elements exposed in the left window.

Is there a way to do this? (or perhaps some extension for it).

+1  A: 

The latest alpha version of firebug 1.4 keeps the most recent code when you switch back and forth. It also has some nifty features like "break on next" - very cool! I can't wait til it's beta/mature. hmm ... i guess that's literal - i can't wait. i'm using the alpha. ;)

grab firebug-1.4.0a31.xpi

Also since this is alpha softwre, I run this under a different profile for my development and use the new features only when I need/want them. It's definitely not stable yet.

Keith Bentrup
+1  A: 

when I switch back to the console view my code is gone and I have to re-paste it

You can show previous commands in the firebug console by using the up/down keys.

Nathan