console.dir works for me:
console.dir(document.getElementById('foo'));
You can see all the functions available on the console, for example:
for (var n in console) {
if (typeof console[n] == "function") {
console.log(n);
}
}
(I get the following in Chrome 5.0.322.2 :)
debug
error
info
log
warn
dir
dirxml
trace
assert
count
markTimeline
time
timeEnd
group
groupEnd
source
share