In ASP.NET development, scripts can improve the interaction of the BS program and the customer, reduce the data transfer of the client and service.
But most ASP.NET developers still tend to avoid writing client scripts or only using scripts to complete some simple features.
There are many reasons for this situation, but the script is difficult to debugging is the main reason.
The following steps describe how to use the debugger in VS.NET to debug JavaScript:
1. First, let your IE allow debugging scripts, the specific steps are as follows:
Open IE-> Tools Menu -> Inter Home -> Advanced tab -> Remove the Disable Script Debugging option
2, open vs.net, create a new ASP.NET project (or open one)
3, run the page you want to debug
4, when your page is present in IE, return to VS.NET
5, set breakpoints in the script:
Debug Menu -> Window -> Debug Document
-> Select the page you want to debug in "Run Document" (this is a floating toolbar similar to the solution manager)
6, then you can enter the script by operating the web page. When the script is running to the breakpoint, you can debug it.
If you want to enter the debug state when you start loading, you can press F10 (process) to debug