Command Line

From FirebugWiki
Revision as of 01:11, 6 April 2011 by Sebastianz (Talk | contribs) (Added description for Command Line Popup)

Jump to: navigation, search
The Command Line appears along the bottom of the Console Panel (small)
Small Command Line‎
or as Command Editor in the Side Panel on the right (large)
Large Command Line (Command Editor)
. The red arrow in the lower right corner toggles between small and large.

The small Command Line supports auto-completion using the Tab key. For example, typing 'w' followed by Tab repeatedly will cycle through all global variables starting with the letter 'w'. Since Firebug 1.6 there's also an popup with suggestions shown for the entered part of a command.

In general the Command Line evaluates whatever expression you type in. It can be a single variable or a complete Javascript program. The evaluation is done by passing the Command Line text into the page, calling eval() on it and passing back the result.

The Command Line also supports the Command Line API, a set of special purpose commands.

In Firebug 1.6 the Command Line was made available to all panels (called Command Line Popup) and can be accessed through the Command Line Popup Button ( CommandLinePopupButton.png ).