views:

294

answers:

2

All,

I'm used to debugging JavaScript in Chrome or Firefox just because their built in developer tools are a lot cleaner than IE's. IE8 came along way with the Developer Tools being more polished, but they're still not completely up to snuff. I like being able to step through code as if I was in Visual Studio, and that is pretty nice about IE, however, when trying to do a simple console.log on an object that I have, in Firefox/Chrome/etc. I can actually explore that object.

In IE, the console is simply outputting the following:

LOG: [object Object]

Is there any way to drill down into that object in IE like in Chrome/Firefox/etc.?

Thanks all! -Steve

A: 

You might want to try: console.log(JSON.stringify(foobarObject));

Andy
Maybe I'm understanding this wrong but if I type "console.log('foo')" into the entry field at the bottom of the console window, the console (text area above) says: >>console.log('foo') undefined
Chris Nelson
+1  A: 

Maybe you can try what Xavi suggested here: http://stackoverflow.com/questions/1956384/how-do-i-dump-javascript-vars-in-ie8

Gonçalo Queirós
Yeah, this is great for debugging, but not completely what I was looking for.
LookitsPuck