Debugging server-side ASP classic in VS 2012

十年热恋 提交于 2019-12-12 02:23:51

问题


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.



来源:https://stackoverflow.com/questions/38937879/debugging-server-side-asp-classic-in-vs-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!