Command Line

From FirebugWiki
Revision as of 10:04, 23 May 2010 by Johnjbarton (Talk | contribs)

Jump to: navigation, search
The command line appears along the bottom of the Console panel ('small')
Small Command Line‎
or in the side panel on the right ('large')
Large Command Line
. The red arrow in the lower right corner toggles between small and large.

The small command line supports completion using the Tab key. For example, typing 'w' followed by Tab repeatedly will cycle through all global variables starting with the letter 'w'.

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.