By Brian Dukes on
5/17/2007 1:53 PM
If you're anything like me, you've been greatly looking forward to Visual Studio Orcas, with its enhanced support for JavaScript. You might also not know that some of that functionality is available to us currently in Visual Studio 2005. It's not exactly easy to setup and use, but once you get it going, it can really help out when you're trying to figure out why, for example, all elements on your page suddenly disappear, only in IE.
Using this Knowledge Base article as a starting point, http://support.microsoft.com/kb/816173, I was able to get up, running, and debugging. The first step is to enable debugging from Internet Explorer, by unchecking the "Disable Script Debugging (Internet Explorer)" box in IE's Advanced Options. Then, in order to actually set a breakpoint and step into your javascript code, you'll need to use the debugger keyword in your code. Just put that statement in your script wherever you would like the debugger to break, and...
Read More »