O'Reilly logo

MooTools 1.3 Cookbook by Jay Larry G. Johnston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required