问题描述
有什么方法可以在 Visual Studio 中同时调试经典的 ASP 和 ASP.net 应用程序,让我可以在 ASP 代码行和 ASP.net 代码行上设置断点?
Is there any way to debug both classic ASP and ASP.net applications from visual studio to allow me to breakpoint on an ASP line of code and an ASP.net one too?
这适用于具有较旧的经典 asp 组件和较新的 ASP.net 模块的旧系统
This is for a legacy system which has older classic asp components and newer ASP.net modules
我通过自己调试 ASP.net(而不是 ASP)或通过调试 ASP(而不是 ASP.net)来调试它
I have it working by debugging the ASP.net on its own (and not the ASP) or the other way around by debugging the ASP (and not the ASP.net)
做ASP:
从 Visual Studio 中附加到进程 w3wp.exe(因为该站点托管在我的本地 windows 7 x64 机器上的 IIS7 上)
Attach to process w3wp.exe from within Visual Studio (as the site is hosted on IIS7 on my local windows 7 x64 machine)
做ASP.net:
转到 VS 站点属性并选择默认服务器.
Goto VS Site properties and choose default server.
我想做的事可能吗?
谢谢
MH
推荐答案
恐怕答案很简单,不.您不能附加到一个进程来同时调试脚本和托管代码.
The answer is a simple No I'm afraid. You can not attach to a process to debug both Script and Managed Code at the same time.
这篇关于VS2008 一起调试 ASP 和 ASP.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!