Search code examples
debuggingvisual-studio-2012asp-classiciis-express

Debugging server-side ASP classic in VS 2012


Following this answer I am able to connect to an IIS Express instance with debugging.

However, I am only able to place breakpoints in a small set of my ASP pages, as shown in the VS2012 Solution Explorer while the debugger is attached to the website's IIS Express process:

VS2012 screenshot

These are basically the first ~20 ASP files in the site's directory hierarchy.

If I try to put a breakpoint in any other ASP file in the solution I get a tooltip message:

The breakpoint will not currently be hit. No symbols have been loaded for this document.

How do can I enable breakpoint debugging in all ASP files in the website?


Solution

  • You can use the STOP keyword in classic ASP. Wherever you write this in VBS code the server will stop and prompt you to attach a Visual Studio debugger, which will then give you full visibility into the running source file.

    In order to do this you need to configure IIS to allow Server side Debugging.