Java Reference
In-Depth Information
The source code in the left panel is read-only; if you want to change it, you have to edit the fi le in your
text editor. Let's do so and change the offending documents in line 16 to document. Save it, and reload
the web page.
Having corrected the mistake and reloaded the page, you should see the times table in your web page,
as shown in Figure 4-5.
Figure 4-5
Also notice that the source code in Firebug's left panel updated to refl ect your changes.
Setting Breakpoints
As mentioned earlier, breakpoints tell the debugger to pause code execution at a specifi c point in your
code. This is handy when you want to inspect your code while it executes. Creating breakpoints in
Firebug is straightforward; simply left-click in the gray area to the left of the source code's line numbers
(the gutter). Breakpoints are denoted by a red circle in the gutter where you clicked.
You can also create a breakpoint when writing your code by using the debugger keyword (we'll use
this a bit later).
Search WWH ::




Custom Search