Using the debugger in vs.net to debug JavaScript

xiaoxiao2021-03-06  53

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 runs to the breakpoint, you can debug. If you want to enter the debug state when you start loading, you can press F10 (process) to debug

转载请注明原文地址:https://www.9cbs.com/read-114785.html

New Post(0)