This document provides an overview of Google Chrome Developer Tools. It discusses the different release channels for Chrome, including Stable, Beta, and Dev. It describes how to open the Developer Tools and an overview of the key panels like Elements, Console, and Scripts. It also provides examples of commands and APIs available in the Console.
3. Google Chrome releases
¡ñ Stable channel
¡ñ Beta channel
¨C latest features
¨C more stable than Dev
¡ñ Dev channel
¨C where ideas get tested (and sometimes
fail)
¨C usually require some manual
configuration
13. Console API
¡ñ console.log(object[, object, ...]) - Writes a message to
the console.
¡ñ console.warn(object[, object, ...]) - Writes a message to
the console with the visual "warning" icon.
¡ñ console.error(object[, object, ...]) - Writes a message to
the console with the visual "error" icon.
¡ñ console.assert(expression[, object, ...]) - Tests that an
expression is true. If not, it will write a message to the
console and throw an exception.
14. Console API
¡ñ $("id") - dumps node with id equal to "id" into the Console.
¡ñ $$("selector") - dumps nodes equal to the CSS selector
into the Console.
¡ñ $0 - contains most recently selected node. You can use it
to dump it into the console or in other console
expressions.
¡ñ $1 .. $5 - contain previously selected nodes.
¡ñ inspect(node) - selects given node in the Elements Panel.
¡ñ dir(node) - dumps node as a JavaScript object with its
properties into the Console.
¡ñ dirxml(node) - dumps node as an HTML subtree into the
Console.