How to: Enable Client-Side Script Debugging

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic does not apply
Topic does not apply
Topic does not apply
Topic does not apply

Standard

Topic applies
Topic does not apply
Topic applies
Topic applies

Pro and Team

Topic applies
Topic does not apply
Topic applies
Topic applies

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

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

  1. On the Tools menu, click Internet Options.

  2. In the Internet Options dialog box, click the Advanced tab.

  3. In the Browsing category, clear the Disable script debugging check box.

  4. Click OK.

  5. 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.

To manually attach

See Also

Client-Side Script Debugging Roadmap
Client-Side Script Debugging
Debugging ASP.NET
Debugging Web Applications and Script