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

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

问题描述

由于我需要调试asp经典代码,我一直被视觉工作室2003所困扰。

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

几年前,我试图调试经典asp与vs 2005没有运气,我认为有一些肮脏的黑客应该实现魔法,但我不能使它工作...

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 !,刚刚发现以下问题

oops!, just found the following question

Does Visual Studio 2008 support classic ASP development?

所以看起来像是视觉效果工作室2008真的支持经典的asp调试...

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

我会把问题打开几天,以防万一有人ts添加一些教程,评论或任何有趣的...

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

-
编辑:

-- edit:

一些链接

肮脏的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中调试了经典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中,Microsoft完全改变了调试器连接到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.

我的每一台机器都停止了在某些时候调试经典ASP,另一个因为出现与星星对齐的原因。我曾经有一个14页的清单打印输出,描述了整个咒语,从IIS管理器跳到Visual Studio到用户帐户管理器,到COM + Explorer ...,甚至没有一直工作。它让我颤抖,只是想着它。

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上的ASP调试200 6

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天全站免登陆