Debugging JavaScript In Internet Explorer

I’ve been working on a very javascript / css heavy feature this week, so naturally I had to do a lot of cross-browser testing. The way I debug Javascript and CSS in Chrome (which is my default browser for everything), is by playing around in the Web Developer Console.


When debugging, I love to put console.log statements in my code to see what is really happening with my app that leads up to the bug. So when I had a feature work in Chrome but not in Internet Explorer (IE), naturally I put in console.log statements in my code to see what the output in IE was. WRONG!! Apparently you can’t console.log in IE yet! Here is a great post on Stack Overflow about how to get around this problem.

Working with IE. Now that is scary! Happy Halloween.

Enjoy the article? Join over 14,500+ Swift developers and enthusiasts who get my weekly updates.