Social Media Magazine

Simple Tip : Print Object in IE Console Log

Posted on the 18 March 2013 by Pro Webguru @prowebguru

So you are using Developer Tools in IE ? Trying to print Object in Console with console.log(object_variable); But in IE when you print that you get [Object].

In JavaScript if you use same console.log(object_variable); in Chrome Inspect Element or Firefox Firebug console then it will print that object and you can see what are the contents of that object. But in Internet Explorer F12 Developer tools, it prints only [Object].

So instead you can use JSON.stringify(object_variable) and it will print the contents of the object.

I hope it helps.

If you know any other way, please do let me know through comments.


Back to Featured Articles on Logo Paperblog