Most debugger consoles support displaying objects directly. Just use console.log(obj); Depending on your debugger this most likely will display the object in the console as a collapsed tree. You can open the tree and inspect the object.
console.dir and
console.dir and
JSON.stringify(obj)
will give you back a string representation of the object.
Comments
Post a Comment