Installation Method:
1. ie properties-advanced-Disable script debugging, and remove the check box.
2. Download Microsoft Script debugger and install
The following describes how to debug the debugger.html file,CodeAs follows:
< Html >
< Head >
< Script Language = "JavaScript" >
Function Mydebugger ()
{
VaR A = 1 , B = 2 ;
VaR T;
T = A;
A = B;
B = T;
}
</ Script >
</ Head >
< Body >
< Input Type = "Button" Value = "Start debugging" Onclick = "Mydebugger ()" />
</ Body >
</ Html >
1. Open the debugger.html file and click [view]-[script debugging] On the IE Toolbar.Program]-[Open]
2. In the select debugger dialog box, select vs. net2003, click yes, and select the debug program type. Select script here. After confirming, vs. Net opens.
Debugger.html File
3. Set breakpoints in function mydebugger
4.go back to the debugger.html page and click <start debugging>
The main advantage of using script debugger is that it is easy to use and debug in the vs. NET environment.