Using the console debugger in Firefox's Firebug

The previous two recipes have already demonstrated the syntax for logging messages to a console.

console.log('hello world');

In this recipe, get ready to use the console for stepping through an application while watching the variable stack.

How to do it...

Right-click the line number and type an expression, just like you would within the parentheses of an if statement. In the code snippet for this recipe, on line 30, use obj_key == "key3".

How to do it...

How it works...

Once the page is reloaded, the loop iterating over the object will run. On each pass through line 30, the conditional breakpoint will be evaluated. If ...

Get MooTools 1.3 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.