调试传统的ASP在Visual Studio 2010 [英] Debugging Classic ASP in Visual Studio 2010

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

问题描述

我已阅读这个问题并的this页面链接到的问题,以及几十个其他物品的有关与VS调试ASP经典,但它仍然不是点击我。

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中使用内部卡西尼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.

卡西尼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://本地主机/ 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.

编辑 - 添加

本文将你通过它一步一步。
调试经典ASP(VBScript)的Visual Studio 2008中

This article takes you through it step-by-step. Debugging Classic ASP ( VBScript ) in Visual Studio 2008

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

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