Displaying objects in IE Developer Tools console

Robert Koritnik picture Robert Koritnik · Dec 29, 2010 · Viewed 18.9k times · Source

I'm debugging my web application in Firefox, Chrome and Internet Explorer. With the latter I'm using Developer Tools to debug my scripts.

The problem I'm having is that when I write some expression in console window and it should return an object all I can see is a simple {...} which isn't really helpful.

Is it possible to make it work similar to Firebug or Chrome console that actually display object content. Chrome is the best in this regard, because you can directly traverse the whole object as in Visual Studio.

Anyway. Is it possible to make IE Developer Tools console to display object properties and their values?

Answer

Dave Aaron Smith picture Dave Aaron Smith · Jan 23, 2013

I use the built in JSON object.

JSON.stringify(my_object)