How to: Debug a Client-Side Script from Microsoft Internet Explorer
This topic applies to:
| Visual Studio | Visual Basic | C# | C++ | J# | Visual Web Developer |
| Express | Yes | Yes | Yes | Yes | Yes |
| Standard | Yes | Yes | Yes | Yes | Yes |
| Pro/Team | Yes | Yes | Yes | Yes | Yes |
This topic describes how to debug from a running instance of Internet Explorer.
Note |
|---|
| The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings. |
To debug a client-side script from Microsoft Internet Explorer
-
Ensure that client-side script debugging is enabled. For more information, see How to: Enable Client-Side Script Debugging.
-
On the View menu in Internet Explorer, select Script Debugger, and click Open. This launches the Visual Studio Just-In-Time Debugger dialog box.
-
From the Possible Debuggers list in the Visual Studio Just-In-Time Debugger dialog box, select New Instance of Visual Studio 2005, and click Yes.
-
Place break points in the script as needed in the Script Explorer window.
-
Continue debugging.
To specify that the debugger stop at the first statement of scripts
-
Ensure that client-side script debugging is enabled. For more information, see How to: Enable Client-Side Script Debugging.
-
From the View menu in Internet Explorer, select Script Debugger, and click Break at Next Statement. This launches the Visual Studio Just-In-Time Debugger dialog box.
-
From the Possible Debuggers list in the Visual Studio Just-In-Time Debugger dialog box, select New Instance of Visual Studio 2005, and click Yes.
From now on, when any script is executed, the debugger stops at the first statement of the script.
Note