Live objects in Chrome’s console.log

It’s quite well known that passing an object in JavaScript passes a memory reference.

It turns out when logging nested objects to the console in Chrome, Chrome logs the reference to any nested objects rather than taking a deep snapshot. Which can make debugging more difficult, to say the least.

console-log-odd

2 thoughts on “Live objects in Chrome’s console.log”

Leave a Reply

Your email address will not be published. Required fields are marked *