无法通过连接过程W3WP调试上IIS7 asp.net [英] Cannot debugging asp.net on IIS7 by attaching process w3wp

查看:149
本文介绍了无法通过连接过程W3WP调试上IIS7 asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2008一个asp.net网站,我有pre-编译本地目录这是IIS 7(HTTP://机器:83)虚拟目录

I have a asp.net website in VS2008 which I have pre-compiled in local directory which is virtual directory for IIS 7(http://machinename:83)

当我
1.启动的http://机器:83 /
2. VS2008 - >调试 - >附加到进程..--> w3wp.exe的选择
3.设置在VS2008 code中的断点
4.运行应用程序

when i 1. launch http://machinename:83/ 2. VS2008-->debug-->Attach to Process..-->select w3wp.exe 3. set the breakpoint in code in VS2008 4. run app

而我发现它不能去的断点。 (我敢肯定,断点必须运行)

while i found it cannot go to the breakpoint. (i m sure the breakpoint must be run)

任何人都可以帮助我在这?

anybody can help me on this?

推荐答案

你在做什么应该工作,但你可以试试这个,这是经常使用在启动调试Windows服务:

What you're doing should work, but you can try this, which is frequently used to debug Windows services upon startup:

System.Diagnostics.Debugger.Launch();

只要把你想上哪儿开始调试线,操作系统会提示你连接。

Just put it on the line where you want to start debugging, and the OS will prompt you to attach.

这篇关于无法通过连接过程W3WP调试上IIS7 asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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