How do you debug classic ASP?

asp-classic, debugging, iis, iis-7

Solution

From an MSDN blog post: http://blogs.msdn.com/mikhailarkhipov/archive/2005/06/24/432308.aspx

Here is how to make ASP debugging work:

- Enable ASP debugging on the server. (I also added DEBUG verb to the asp extension, but I am not sure if it is required).

- Open classic ASP in VS 2005.

- Set breakpoint.

- View page in browser or run without debugging.

- Debug | Attach to Process

- Locate IIS ASP worker process (w3wp.exe on IIS6) which exposes x86 and Script and attach as Script.

From eddiegroves comment below:

Regarding Step #1 in IIS7 - IIS > ASP > Compilation > Debugging Properties > Enable Server-side Debugging

Problem

I have to debug a classic asp site being served by IIS 7 (windows 2008). How can I do this? I have only worked with ASP.NET.

Original source

Related problems