在 Visual Studio 2010 中调试经典 ASP [英] Debugging Classic ASP in Visual Studio 2010

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

问题描述

我已阅读这个问题这个页面 链接到问题中,以及其他几十篇关于调试asp经典的文章使用 VS 但它仍然没有为我点击.

I have read this question and this page linked to in the question, as well as dozens of other articles about debugging asp classic with VS but it's still not clicking for me.

我使用的是 VS 2010.我想在远程服务器上实时调试的文件.我已经在服务器上安装了远程调试器.我打开网站并附加到远程机器上的 w3wp.exe 进程.我创建了一些断点,但我仍然在这些断点上收到当前不会命中该断点.没有为此文档加载任何符号".这是问题所在还是我正在做的事情存在更大问题的征兆?

I am using VS 2010. The files I want to debug live on a remote server. I have installed the Remote Debugger on the server. I opened the website and attached to the w3wp.exe process on the remote machine. I created some breakpoints but I am still getting "The breakpoint will not currently be hit. No symbols have been loaded for this document" on those breakpoints. Is that the problem or is that a symptom of a larger problem with what I am doing?

推荐答案

首先,默认情况下,当您在 Visual Studio 中打开网站时,您是通过文件系统打开它,而不是通过 IIS.如果是这种情况,则 Visual Studio 使用内部 Cassini Web 服务器,而不是 IIS.

First, by default, when you open a web site in Visual Studio, you're opening it via the file system, not via IIS. If this is the case, then Visual Studio uses the internal Cassini web server, rather than IIS.

Cassini Web 服务器不运行经典的 ASP.IIS 可以.所以你需要做的第一件事就是弄清楚如何在 IIS 中进行调试.

The Cassini web server does NOT run classic ASP. IIS does. So the first thing you need to do is figure out how to debug in IIS.

不言而喻,您需要在您使用的机器上安装 IIS,并将您正在调试的网站设置为与在服务器上相同的设置.(因此您应该能够运行 http://localhost/somepath 并能够看到您的站点)

It should go without saying, you need to have IIS installed on the machine you're working with, and have the web site you're debugging set up the same as it would be on the server. (so you should be able to run http://localhost/somepath and be able to see your site)

您还需要附加到 Internet Explorer 的运行进程.还有一个链接.

You also need to attach to the running process of Internet Explorer. There's a link to that as well.

接下来,您需要让 Visual Studio 附加到 IIS 并执行网站,而不是使用内置的 Web 服务器并启用调试.

Next, you need to get Visual Studio to attach to IIS and execute the web site rather than use the built-in web server and enable debugging.

此处涵盖:此主题不再可用(这是您在问题中喜欢的页面的第一个子链接 此处.

从那里,您应该能够访问剩余的链接并启动和运行.

From there, you should be able to follow the remaining links and get up and running.

编辑 - 添加

本文将带您逐步完成.在 Visual Studio 2008 中调试经典 ASP ( VBScript )

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

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