You may know that Firebug has one of the best interfaces for debugging . What you may not know is it also features a command line and API for heavy-duty debugging.
Firebug is a Firefox extension used by web developers for debugging HTML, CSS, JavaScript and the browser's DOM.
The command line allows you to enter and execute JavaScript commands straight from the Firebug sidebar. The functions available in the API allows you to maneuver, monitor and investigate web page code in more detail.
Sample API commands include:
- Generate lists of elements or properties from specified objects
- Pull XML sources for inspection
- Execute and monitor a singular JavaScript function
The command line tool is available by hitting Ctrl-Shift-L (or Command-Shift-L on Mac OS). Firebug's sidebar window opens up with a view of the console window. The console window displays feedback from the commands you enter using the command line at the bottom of the screen.