Over the last couple of days I’ve been working on client side stuff and have been experimenting with a few different tools for editing and debugging JavaScript. Somewhere in there I installed the Microsoft Script Debugger ontop of the Visual Studio installation (for another tool that needed the script debugger specifically).
Both can co-exist but when you install the Microsoft Script Debugger it takes over script debugging for the machine and dumps Visual Studio out of the loop. So I uninstalled and now I am getting the standard IE error:

This dialog is a pain to read and well, you can’t debug from it.
So how do I get Visual Studio Script debugging back? The key’s in the Tools | Options dialog where you can choose VS.NET as the default script debugger for your system.

You turn a setting in one place and it updates another setting in a completely different place. Intuitive, n’est pas? <g>.
Hopefully this save somebody else a few minutes...
While at it, there are few other settings required to make this work. You also need to set the IE advanced options to specify that you want to allow script debugging. These options are turned off by default and can be set in the IE Advanced options tab:

With these settings in place IE script errors should now once again pop up the Big Red warning dialog. Selecting Yes will the pop up a list of debugger options. If you are debugging JavaScript I'd highly recommend NOT to use an existing Visual Studio instance that you care about, since the script debugger has a tendency to lock up. So I usually do my script debugging in seperate instance of VS.
The following is nothing, but everytime I mention it to developers when I give a session, there are usually a handful of people in the room who didn't know this: In addition to the dialog pop ups on errors that allow you to debug script code, you can also force the debugger to activate with the debugger; keyword. For example:
var Callback = new wwCallbackMethod("LookupPanel","SimpleMethodCallbacks.aspx");
debugger;
Callback.postbackMode = "POST";
Callback.CallMethod("AddNumbers",[203.12,213.11],TestCallback,OnError);
This will also pop up the script debugger - Visual Studio in IE. If you're using FireFox you can use FireBug or Venkman, both of which let you debug JavaScript code in that browser.
Hope this helps...
Other Posts you might also like