Here's my response to this article,
Using Visual Studio to Debug Javascript in IE by
kubben on
codeproject.comAll studio products since Visual Studio 6 allow you to debug client-side JavaScript via F5 (debug) or by adding the keyword "debugger" to your JavaScript source.
I would not recommend enabling/disabling debugging in Internet Explorer (IE) as you might wonder sometimes why the debugger is not firing. Why would you disable it? Well believe it or not, tonnes of sites have JavaScript errors so it can become annoying if you're surfing the web.
I know it sounds obvious to enable debugging in Internet Explorer, but I've seen it happen to many people and they never bother to check the obvious. A better idea is to have a windows account on your machine (your developer account) that has IE setup to be in debug mode for developing web applications. As well set your cache in Internet Explorer to the lowest number of MB possible. Also set your IE cache options to check "Every visit to the page".
Also be wary when debugging a static HTML page. If you make changes to a static HTML page, it doesn't always get updated, even with the above caching options set. I get around this by adding a querystring and changing it whenever I make changes to the HTML page. This only applies to you current browser session. If you close the browser and open the page again, it should be updated.
There is also a cool tool called the
IE Developer Toolbar that you might want to check out,
This is all great if you're debugging only IE (probably a corporate scenario), however in the wonderful world of the Internet, more than IE needs to be supported.
Yes, I know IE still dominates, but 15% or whatever Firefox is at these days, is still a lot of people and Mac users are all about Safari or Firefox. Basically you want as many people seeing your site and seeing your site well.
Sooo....
Firefox has a
cool add-on called FireBug, as well as another cool tool called the DOM Inspector which comes with Firefox by default.
You also might want to look into JSDoc,
http://jsdoc.sourceforge.net, and JSUnit,
http://www.jsunit.net, for speeding up development in the long run because you have API docs to reference and creating code that follows a certain standard.
Cheers,
Nick ;)