有人能用visual studio 2005或更高版本调试asp经典代码吗? [英] has anybody been able to debug asp classic code with visual studio 2005 or later?

查看:22
本文介绍了有人能用visual studio 2005或更高版本调试asp经典代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我需要调试 asp 经典代码,我已经使用 Visual Studio 2003 很久了...

I've been stuck with visual studio 2003 for ages because of my need to debug asp classic code...

几年前,我尝试用 vs 2005 调试经典的 asp,但没有成功,我认为有一些肮脏的 hack 应该实现这种魔力",但我无法让它工作......

A few years ago I tried to debug classic asp with vs 2005 with no luck, I think there was some dirty hack that was supposed to achieve that "magic", but I couldn't make it work...

不知道有没有人比我幸运...

I wonder if anybody has been luckier than me...

还没有尝试过vs 2008,但我对此不是很有信心,因为微软缺乏对经典asp的支持......

Haven't tried yet with vs 2008, but I'm not very confident on that, due to the lack of support to classic asp from microsoft...

--

哎呀!,刚刚发现以下问题

oops!, just found the following question

Visual Studio 2008 是否支持经典 ASP 开发?

看来,visual studio 2008 确实支持经典的 asp 调试...

so it seems like visual studio 2008 really supports classic asp debugging...

我会把这个问题留几天,以防有人想添加一些教程、评论或任何有趣的东西......

I'll leave the question open for a couple of days, just in case someones wants to add some tutorial, comment or anything interesting...

--

一些链接

我所说的肮脏的 Visual Studio 2005 hack:

the dirty visual studio 2005 hack I was talking about:

http://blogs.msdn.com/greggm/archive/2006/03/15/552108.aspx

一些解释如何使用 Visual Studio 2008 调试经典 asp 的链接,还不能尝试其中任何一个...

a few links explaining how to debug classic asp with visual studio 2008, couldn't try any of them yet...

http://www.codeproject.com/KB/debug/DebugVBScriptVS2008.aspx

http://codepagoda.com/2009/04/30/debugging-classic-asp-with-visual-studio-2008-sp1-and-35-framework/

http://bytes.com/groups/asp/836751-better-debugging-classic-asp-visual-studio-2008-sp1

推荐答案

我已经在 Visual Studio 2005 中调试了 Classic ASP.另外,Visual Studio 2008 应该让它变得更好,但我从来没有机会尝试或找到详细说明.

I have debugged Classic ASP in Visual Studio 2005. Also, Visual Studio 2008 was supposed to make it better, but I never had a chance to try or to find out the details.

您最大的问题是 Visual Studio 2005 取消了从调试开始"ASP 应用程序的功能.

Your biggest problem is that Visual Studio 2005 took away the ability to "Start With Debug" an ASP application.

在 VS 2005 中,微软彻底改变了调试器连接 IIS 的方式.从 InterDev(还记得 InterDev 吗?)到 VS 2003 的所有东西都使用的旧方式(对于 ASP 和 ASP.NET)是通过机器调试管理器"(一种中间帮助服务)进行编排的.整个事情是......奥术,试图解决一个复杂的问题,因为 IIS 和 Visual Studio 在不同的帐户下运行,在某些情况下,在不同的机器下运行,这个问题变得更加困难.这是一个非常微妙的过程,很容易在最轻微的配置更改时中断.

In VS 2005, Microsoft completely changed the way the debugger connected to IIS. The old way (for both ASP and ASP.NET) which was used by everything from InterDev (remember InterDev?) through VS 2003 was orchestrated via the "Machine Debug Manager", a sort of intermediary helper service. The whole thing was... arcane, trying to solve a complex problem that was made harder by the fact that IIS and Visual Studio run under separate accounts and in some cases, different machines. This was a very delicate process that was very prone to break at the slightest configuration change.

我的每一台机器都在某个时候停止调试 Classic ASP,原因似乎与星星对齐有关.我曾经手头有一个 14 页的清单打印输出,它描述了整个咒语",从 IIS 管理器跳转到 Visual Studio 到用户帐户管理器,再到 COM+ 资源管理器……甚至这并不总是有效.光是想想就让人不寒而栗.

Every single one of my machines stopped being able to debug Classic ASP at some point or another for reasons that appeared related to the alignment of the stars. I used to have at hand a 14 page checklist printout that described the whole "incantation", jumping from IIS Manager to Visual Studio to User Account Manager, to COM+ Explorer... and even that didn't always work. It makes me shiver just thinking about it.

最终,他们放弃了.在 Visual Studio 2005 中,Microsoft 提出了一种用于调试 IIS 应用程序的不同架构(抱歉;我现在不知道它是如何工作的).当时,MS 决定不再有足够的人使用 ASP,并优先考虑其他工作.通过新架构启用 ASP 调试需要大量工作,尤其是对于即将淘汰的技术而言,因此它被砍掉了.我不怪他们;他们做出了明智的商业决策.您宁愿在 VS 2005 中没有 ASP 调试吗?还是在 VS "2006" 上进行 ASP 调试?

Ultimately, they gave up. In Visual Studio 2005, Microsoft came up with a different architecture for debugging IIS applications (sorry; I don't know how it works now). At the time, MS decided that not enough people were using ASP anymore, and prioritized other work on top of it. Enabling ASP debugging through the new architecture was a significant amount of work especially for a technology on its way out, so it got chopped. I don't blame them; they made a sound business decision. Would you rather have no ASP debugging in VS 2005? Or yes ASP debugging on VS "2006"?

无论如何,并不是所有的都丢失了.

Anyway, not all is lost.

首先,您不能再使用 F5启动"调试器,但您仍然可以手动附加到已经运行的 ASP 进程,只要您在 IIS 管理器中手动启用调试,它就会工作.Visual Studio 2005 中的体验有时比旧版本更好,有时更差.它当然更稳定并且非常可行.更多详情如下.

First, you can't "launch" the debugger with F5 anymore, but you can still attach manually to an already running ASP process and it will work, as long as you enable debugging in IIS Manager by hand. The experience in Visual Studio 2005 is sometimes better, sometimes worse than under older versions. It's certainly more stable and very much doable. More details below.

其次,我听说 Visual Studio 2008 应该卷土重来并在产品中重新获得 ASP 调试,或者至少带来一些改进,或者诸如此类——我永远无法清楚地了解情况.然后我完全忘记了整个事情,因为我奇迹般地让自己几年来一直没有处理 ASP 项目.

Second, I heard at some point that Visual Studio 2008 was supposed to make a come back and get ASP debugging back in the product, or at least bring some improvement, or some such -- I could never quite get a clear picture. Then I lost track of the whole thing because by some miracle I've kept myself out of dealing much with ASP projects for a few years now.

我会尝试找到更多关于 VS 2008 和经典 ASP 的参考资料.如果我找到了一些东西,我会用它来编辑这篇文章(抱歉,我可能需要几天的时间才能找到它).

I'll try to find more references on VS 2008 and classic ASP. If I find something, I'll edit this post with it (sorry -- it might take me a few days to get to it).

可以在这些帖子中找到更多详细信息:

More details can be found in these posts:

有关如何通过手动附加在此 Gregg Miskelly 帖子中进行调试的完整说明:调试经典 ASP 代码

Full instructions on how to debug by manual attaching in this Gregg Miskelly post: Debugging Classic ASP Code

可以在这里找到其他相关信息和在其他 Mikhail Arkhipov 帖子​​中.

Other related information can be found here and at other Mikhail Arkhipov posts.

希望这会有所帮助.

这篇关于有人能用visual studio 2005或更高版本调试asp经典代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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