Simple Tip : Print Object in IE Console Log


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.

ProWebGuru: Mostly I write about technology related stuff on https://www.prowebguru.comRecently I have started making videos also. Mostly blog posts & videos are related to technology, programming and learning some new tips and tricks related to windows, wordpress, google app script, technical, programming, javascript, jquery and other coding related stuff.Youtube channel - https://www.youtube.com/user/prowebguru

View Comments (1)

This website uses cookies.