Search code examples
firefoxfirefox-developer-tools

Multiline mode for Firefox debug tools?


Note for close vote AIs: I'm not asking for software recommendation on another product. That would be off topic anyway. I'm asking whether something is possible in .

One of the great features of Firebug - which is now discontinued and already started to malfunction - was the side to side script editor with console:

image description

I can't figure out how to enable this in the Firefox Developer tools. I looked in settings but there's nothing about it. Is that even possible in Firefox Developer tools? Or maybe it's simply not possible?

I do know that with Shift+Enter you can enter multiple lines in the console, but when you press enter the line resets.


Solution

  • The Firefox DevTools have something similar called Scratchpad, which is a separate panel allowing you to execute multi-line JavaScript code. Furthermore, the command line allows you to enter line breaks by pressing Shift+Enter and automatically breaks into the next line when the entered expression is not finished, e.g. when you write document. and hit Enter.

    As those features are not exactly what Firebug provided and the UI is somewhat requiring getting used to, there is a request to implement a multi-line mode for the console like in Firebug as well as a request to improve the output within Scratchpad.