Step 1:Open an existing Asp.net application in Visual Studio 2005ProgramWhich requires some JavaScript.
Step 2:When we create a web project in Microsoft Visual Studio, a file named Web. config is created in this web project by default.
Let's check its settings: Set the debug attribute to true.
Step 3:Open the Internet Information Service (IIS) manager.
Start> Administrative Tools> Internet Information Service (IIS) manager-> website-> default website-> right-click the web project you want to debug-> properties-> virtual directory tab-> Configuration-> select debug in the new windows window tab-> select the check boxes "enable ASP server script debugging" and "enable ASP Client script debugging.
Step 4:Open IE, click "Tools"-> Internet Options-> Advanced tab-> cancel "Disable script debugging (Internet Explorer)" and "Disable script debugging (Others)" in the menu bar).
Step 5:Now, open your web project in Visual Studio IDE.
Note: javascript must be placed in a separate. js file, instead of writing JavaScript directly on the. ASPX page. Then add a breakpoint to a line in the. js file just like the. CS or. VB file.
Step 6:When you run your web project, the program stops running at the breakpoint you set.