This page describes how to add watch expressions to help inspect your scripts in Firebug.
Introduction
Use watch expressions to determine the value of an expression or object in your code. This can help you determine if the type and value of the expression are what you were expecting them to be.
Instructions
To add a watch expression to your code:
- In the lower right corner of Firefox, click the Firebug button to start Firebug.
- Click the tab to view the Script tab.
- Click the tab.
- Click the yellow New Watch Expression... field to enable the field, then type your watch expression, and press
the Enter key. (e.g. "document").
Firebug displays the value for your watch expression, which you can expand and collapse as needed.