How to debug (set a breakpoint) javascript in Visual Studio 2005 without installing 3rd party tools/softwares?
First, make sure you uncheck the following settings.
Second, put the keyword "debugger" in your javascript code like this:

function Set()After doing this, you will have full ability just like you are debugging normal C# code. You can use the "Immediate Window" as well, this is the most excited part!
{
debugger; //this is just like a breakpoint
var control = document.getElementById('Button1');
//......
}


0 Comments:
Post a Comment