Command Line

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
The command line appears along the bottom of the Console panel ('small')[[File:ConsoleCommandLineSmall.PNG‎]]  
+
The command line appears along the bottom of the Console panel ('small')[[File:ConsoleCommandLineSmall.PNG|thumb|400px|Small Command Line‎]]  
-
or in the side panel on the right ('large'). The red arrow in the lower right corner toggles between small and large.  
+
 
 +
or in the side panel on the right ('large')[[File:ConsoleCommandLineLarge.PNG‎|thumb|400px|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'.
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'.

Revision as of 18:04, 23 May 2010

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.

Personal tools