blog
discuss
releases
documentation

Development Blog

Firebug tip: make your console output hierarchical

Here’s how you can group output in Firebug’s console:

function groupit()
{
    console.group("group this");
        console.log("level 1 log")
        console.group("group level 2");
            console.warn("level 2 warn")
            console.info("level 2 info")
        console.groupEnd();
        console.log("level 1 log");
    console.groupEnd();
    console.log("ungrouped log");
}

The result is

This example is from Joe Hewitt’s original tests

Comments are closed.