如何调试经典ASP? [英] How do you debug classic ASP?

查看:166
本文介绍了如何调试经典ASP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须调试由IIS 7(Windows 2008)提供的经典asp站点。

I have to debug a classic asp site being served by IIS 7 (windows 2008).

我该怎么做?我只在ASP.NET中工作。

How can I do this? I have only worked with ASP.NET.

推荐答案

从MSDN博客文章: http://blogs.msdn.com/mikhailarkhipov/archive/2005/06/24/432308.aspx

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


以下是如何使ASP调试工作:

Here is how to make ASP debugging work:


  1. 在服务器上启用ASP调试。 (我也添加DEBUG动词到asp扩展,但我不知道是否需要)。

  2. 在VS 2005中打开经典的ASP。

  3. 设置断点。

  4. 在浏览器中查看页面或不调试运行。

  5. Debug |附加到进程

  6. 找到IIS ASP工作进程(IIS6上的w3wp.exe),它暴露了x86和脚本,并作为脚本附加。

  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) which exposes x86 and Script and attach as Script.


从eddiegroves评论如下:

From eddiegroves comment below:


关于IIS7中的步骤1 - IIS> ASP>编译>调试属性>启用服务器端调试

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

这篇关于如何调试经典ASP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆