Command Line

From FirebugWiki
Revision as of 09:59, 23 May 2010 by Johnjbarton (Talk | contribs) (Created page with 'The command line appears along the bottom of the Console panel ('small') or in the side panel on the right ('large'). The red arrow in the lower right corner toggles between smal…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The command line appears along the bottom of the Console panel ('small') or in the side panel on the right ('large'). 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.