How to: Enable Client-Side Script Debugging
[Cette rubrique fait partie de la documentation préliminaire de Visual Studio. Elle est susceptible d'être modifiée au cours des prochaines mises à jour. Les rubriques vierges sont incluses pour future référence.]
This topic applies to:
Edition |
Visual Basic |
C# |
C++ |
Web Developer |
---|---|---|---|---|
Express |
||||
Standard |
||||
Pro and Team |
Table legend:
Applies |
|
Does not apply |
|
Command or commands hidden by default. |
The Visual Studio debugger gives you a comprehensive debugging environment for testing and correcting errors in your Web document scripts. You can use the Visual Studio debugger to test scripts written in Microsoft Visual Basic Scripting Edition (VBScript) and Microsoft JScript.
You can use the Visual Studio debugger to debug client-side scripts in an ASP.NET page. Client-side scripts consist of statements that appear on the HTML page. Microsoft Internet Explorer executes the script when the document is loaded, or in response to an event such as a button click.
Enabling Script Debugging
Script debugging is disabled in Internet Explorer by default. To debug a client-side script application, you must first enable script debugging in Internet Explorer.
To enable script debugging in Internet Explorer 5.5 or later versions
On the Tools menu, click Internet Options.
In the Internet Options dialog box, click the Advanced tab.
In the Browsing category, clear the Disable script debugging check box.
Click OK.
Close Internet Explorer, to make this option take effect.
Error Messages for Script Debugging
Visual Studio provides enhanced error messages for common script debugging problems. These messages do not appear unless you attach to Internet Explorer manually. If you encounter a problem when Internet Explorer is opened automatically, try manually attaching so that you can see the error messages.