Javascript debugging in Visual Studio 2005

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()
debugger; //this is just like a breakpoint
var control = document.getElementById('Button1');
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!

No comments:

Post a Comment