在VS 2008和IIS调试现有的ASP.NET应用程序 [英] Debugging an existing ASP.NET application in VS 2008 and IIS

查看:88
本文介绍了在VS 2008和IIS调试现有的ASP.NET应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个asp.net新手。我继承了asp.net的MVC code的基地,以帮助自己在定位在我面前源的堆积一堆更好,我想通过它在调试器中的步骤。然而,作为微软平台的新手的我,我不知道如何去了解这一点。

I'm an asp.net newbie. I have inherited a base of asp.net mvc code and in order to help myself orient better in the heaping pile of source in front of me I'd like to step through it in a debugger. However, being the microsoft platform newbie I am, I don't know how to go about this.

我们的应用程序在许多不同的主机名,这是我在我的hosts文件设置,这样我就可以在访问的URI的应用程式,例如customername.mysite.loc提供的内容。正因为如此,我认为在Visual Studio 2008中使用内置的Web服务器是不是在我的情况选择,我应该直接附上我的VS调试器IIS进程中,应用恰好运行。

Our application serves content under many different hostnames, which I have set up in my hosts file, so that I can access the app under uris like customername.mysite.loc. Because of this I think using the built-in web server in Visual Studio 2008 is not an option in my case and that I should attach my VS debugger directly to the IIS process under which the application happens to be running.

不幸的是我没有对如何做到这一点发现一大堆的信息,谷歌。大部分的教程在那里发现两种相互矛盾的,或者使用各种旧版本的IIS(我在Windows Server 2008上运行7.0)。显然,解决方案涉及编制我在调试模式下源(我做了),设置在IIS应用程序进入调试模式,重视过程弄好了,但到目前为止,我已经受够了这种简单的轮廓没有成功。

Unfortunately I haven't found a whole lot of information on Google on how to do this. Most of the tutorials found there either contradict each other or use various older versions of IIS (I'm running 7.0 under Windows Server 2008). Apparently the solution involves compiling my sources in debug mode (which I have done), setting the application in IIS into debug mode and attaching to the process somehow, but so far I've had no success with this simple outline.

任何人都可以请点我工作指南或描述一个更好的方法来调试我的项目?就是我想要做甚至可能吗?非常感谢!

Can anyone please point me to a working guide or describe a better way to debug my project? Is what I want to do even possible? Thanks a lot!

推荐答案

调试 - >附加到进程 - > w3wp.exe的

Debug -> Attach to process -> w3wp.exe

请确保你火起来的网站首先让W3WP正在运行,也可能有多个实例在运行,得到正确的(试验和错误通常情况下)

Make sure you fire up the site first so that w3wp is running, also you may have multiple instances running, get the right one (trial and error usually)

:D

这篇关于在VS 2008和IIS调试现有的ASP.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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