I also use the Command Editor (multi-line console) frequently to test code; if it disappeared that would be awful.
Coincidentally, just yesterday I noticed a limitation (?) of the Command Editor. I've been experimenting with adding a custom property to a function as a way to maintain state on a value; it seems much simpler and more elegant than creating a nested function (closure) or global var for that purpose. So I created a simple "counter" (add 1 to previous value) in the Command Editor to test the code -- and it didn't work. It just kept returning the initial value each time. But then I pasted the same code into an HTML page, plus a link to click (to run the function multiple times), and the code worked fine: the counter kept incrementing by 1 each time as I intended. In effect, it seems that each time you click "Run" (or Command-Enter on my Mac) for the Command Editor, it acts as though the page had been reloaded (even though I don't see a page reload) and starts all over again from the beginning. Is there any way to make it behave more like a web page, as though a function were being triggered multiple times within a single page session? -- You received this message because you are subscribed to the Google Groups "Firebug" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/firebug. To view this discussion on the web visit https://groups.google.com/d/msgid/firebug/CAMoMLKh-QGUr%3D047bSuyh5u4CVBzjEfEk9%3DWPw4reuwNBCVUbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
