Javascript and CSS debugging on internet explorer

This post was migrated over from Muziboo DevBlog. It comes as no surprise that when it comes to Javascript, browsers such as Firefox and Safari are more forgiving than Internet Explorer. Also tools like Firebug make javascript debugging very simple. However firebug (just like firefox) does not seem to mind issues like an extra comma or a missing semilcolon and this makes everything break on ie. I recently ran into one such bugs and had a big javascript file that had an error somewhere and resulted in exptected string, identifier error on ie. While looking for javascript debugging tool for ie, I found a few tools Internet Explorer Developer Toolbar Microsoft Script Debugger You can find some more information about these tools at this msdn blogpost. However, the tool that eventually helped me fix the error and which is much more generic and useful is JSLint. Written by Douglas Crockford, this tells you not only about the errors in your javascript file but also bad coding practices that can be seen in your code. I fixed all errors listed on JSLint for my js file and all errors disappered in ie. If you are into writing javascript (for ie or firefox), do validate your code with this tool.

blog comments powered by Disqus
Hana Mohan
Hana Mohan