Skip to content
Crossbrowser Firebug console API. Improves Opera Dragonfly and IE developer tools.
JavaScript
Branch: gh-pages
Clone or download
NV Merge pull request #9 from danielwhite/fix-ie8
Fix logging for older versions of IE where console.log is a host object
Latest commit 21d8065 Nov 18, 2013
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images + screenshots for http://wiki.github.com/NV/console.js/comparison-of-… Oct 27, 2009
tests Update QUnit. Dec 5, 2010
.gitmodules Update QUnit Oct 18, 2010
LICENSE MIT License Mar 12, 2010
README.mdown
console.js Fix logging for older versions of IE where console.log is a host object Nov 11, 2013
index.html Bookmarklet Dec 7, 2010
intro.png No more annoying alerts Dec 26, 2009
package.json Narwhal package. Right now it worst than 'test/jsdump', because prett… Jan 22, 2010

README.mdown

Opera error console, IE6 alert, Firebug, Webkit Web Inspector

Different browsers, same API.

Both Firebug and Web Inspector have console API support. Opera and IE 8–9 kind of have it. IE≤7 doesn't have it at all.

Console.js — crossbrowser Firebug console API

>>> console.log({x:3, y:5})
{x: 3, y: 5}
>>> console.dir({x:3, y:5})
{
  x: 3, 
  y: 5
}

>>> console.log(document.body)
<BODY class="timeline" id="home">
>>> console.dir(document.body)
HTMLBodyElement {
  aLink: "", 
  attributes: NamedNodeMap {
    0: Attr {?}
    ...
  }
}

Console.js benefitsComparison of consoles

You can’t perform that action at this time.