Firebug 3 Multi-line Concern

106 views
Skip to first unread message

Sheri

unread,
Mar 1, 2016, 11:09:56 AM3/1/16
to Firebug
I have been a longtime user of Firebug and I rely on the multi-line capability in the console to test JavaScript.

I tried Firebug 3 today and the multi-line command function seems to be gone.  I know you can enter multiple lines in the single line view, but it is not the same, most importantly you can't modify a particular snippet of code as needed for testing. 

I have taught JavaScript courses, and the tool as it stands is excellent for letting students enter a small block of code and experiment with it. This also works as a very simple introduction to Firebug.

As far as I know there is no other browser tool that allows this, although with Firebug available I never felt the need to look.  This feature would be a huge loss.

Please let us know what your plans are for this feature.  I will have to stay on version 2 if this feature is not included. If you know of a plugin or other alternative that can be used alongside Firebug with this functionality, please let us know.

Thanks

Jan Odvarko

unread,
Mar 1, 2016, 11:14:25 AM3/1/16
to fir...@googlegroups.com
Firebug 3 will be integrated with Firefox DevTools directly, see also:

So, the multiline console (aka Command Editor) needs to be implemented
in DevTools, reported here:

Honza 

--
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 firebug+u...@googlegroups.com.
To post to this group, send email to fir...@googlegroups.com.
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/1fe72c8d-abc1-4010-bef6-6fc463a827ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lawrence San

unread,
Mar 1, 2016, 3:12:37 PM3/1/16
to fir...@googlegroups.com
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?

Raphaël Dehousse

unread,
Mar 25, 2016, 2:20:18 AM3/25/16
to Firebug
I use ScratchPad for multi-line command. Even more convenient than the Command Editor :)

Lawrence San

unread,
Mar 25, 2016, 12:34:40 PM3/25/16
to fir...@googlegroups.com
​I
​ never even noticed ScratchPad before! Seems to work, for a simple if/then alert anyway... I'll have to experiment with it. Thanks for pointing it out.

What are the limitations of its not being integrated with Firebug?​ I guess that a command to copy code between the two would be helpful...

Reply all
Reply to author
Forward
0 new messages