Share via

Debugging ASP Applications

Although the primary focus of Web debugging in Visual Studio 2010 is ASP.NET, you can also debug legacy ASP Web applications.

ASP Web applications consist of scripts, which run on the client in .htm files and on the server in .asp files; the Global.asa file; and .cdf files. Scripts can be in VBScript, JScript, or a mix of VBScript and JScript. They may also be mixed with HTML code and COM objects. You can debug ASP Web applications containing all of these elements.

In Visual Studio, you can debug client-side script running on your local machine by attaching to a local copy of Internet Explorer. To debug script running on Microsoft Internet Information Services, you can attach to IIS on your local machine.

ASP code executes in the Internet Information Services (IIS) process (in-process execution) or in a separate Mtx.exe process (out-of-process execution). To debug ASP code, you must attach to the IIS or Mtx.exe process. To debug client-side script as well, you must also attach to the IIS process. For information on how to attach to processes, see Attaching to Running Processes.

When you attach to an ASP Web application, make sure you select the appropriate program types in the Attach To Process dialog box. When you debug script, Managed code must not be selected. You cannot debug script and managed code at the same time in Visual Studio 2005.

In This Section

See Also


Debugger Security

Other Resources

Debugging in Visual Studio

Debug Settings and Preparation

Debugger Roadmap

Change History




March 2011

Replaced Inetinfo.exe with IIS Process

Replace with one of the following tokens:

Customer feedback.

Information enhancement.