Debugging server-side ASP classic in VS 2012

2019-08-27 08:41发布

问题:

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:

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?

回答1:

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.