Debug classic ASP in Visual Studio 2005
When you use a computer attached to the school or company networks, you need to run VS 2005 as a local computer user (not a network user). Even if you are a member of admin and you have a full control to the machine, you may not be able to set a break point in you classic asp code.
It took more than a week to solve this problem with me. I think this is a kind of unique problem that not many people bump into. Here is a list of web pages about the classic ASP debugging issues.
- http://www.codeproject.com/KB/asp/Dubugging_Classic_ASP.aspx
- http://www.asp101.com/articles/john/classicaspinvsnet/default.asp
- http://www.asp101.com/tips/index.asp?id=122
- http://blogs.msdn.com/mikhailarkhipov/archive/2005/06/24/432308.aspx
Here is a summary for that from one of the web pages above.
1. Enable ASP debugging on the server. (I also added DEBUG verb to the asp extension, but I am not sure if it is required).
2. Open classic ASP in VS 2005.
3. Set breakpoint.
4. View page in browser or run without debugging.
5. Debug | Attach to Process
6. Locate IIS ASP worker process (w3wp.exe on IIS6, dllhost on IIS5) which exposes x86 and Script and attach as Script.
Posted: June 23rd, 2008 under ASP.
Comments: none