I\'ve ran into some really weird behavior with javascript today. I think I got it somehow figured out now, but I\'d like to know if what I think is going on is really happen
There is console.dir()
for what you want in Firebug.
In general, it is not possible to print every level of nested properties, since objects can contain circular references like var a = {}; var b = {a: a}; a.b = b;
Implementing a perfect clone
method is very hard - I guess it would have to basically just dump the whole memory, and logging would take awfully long. Think about console.log(window)
...