在VS2010中,有没有办法知道给定w3wp.exe服务的应用程序池,然后决定附加调试器? [英] In VS2010, is there a way to know which application pool a given w3wp.exe is serving, to then decide to attach the debugger to?

查看:243
本文介绍了在VS2010中,有没有办法知道给定w3wp.exe服务的应用程序池,然后决定附加调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在调试一些网站(一个来自中继线,一个来自分支机构)在本地运行,在单独的应用程序。我在两个VS实例中打开了trunk和branch解决方案。我想在一个调试trunk,另一个分支。我想知道是否有一种方法可以知道每个w3wp.exe服务的应用程序池,以了解连接调试器是哪一个应用程序池。



更新:要点是在VS中写一个宏,然后让我有一个按钮(每个应用程序池是有趣的),这将是可点击的附加调试器。所以解决方案最好不要涉及其他程序。



Update2:这是Windows 7针对IIS7。

解决方案

另一个选项是 WADA - W3WP高级Attacher 可在Visual Studio Gallery中使用。我通过在扩展管理器的在线画廊中搜索附加工作者来找到它。


So I'm debugging some websites (one from trunk, one from branch) running locally, in separate apppools. I have trunk and branch solutions open in two VS instances. I'd like to debug trunk in one, and branch in the other. I'd like to know if there's a way to know which application pool each w3wp.exe is serving, to know which one is which when attaching the debugger.

Update: the point of this is to write a macro within VS to then let me have a button (per app-pool that is interesting) which will be clickable to attach the debugger to. So solutions should preferably not involve other programs.

Update2: this is on Windows 7 against IIS7.

解决方案

Another option would be the WADA - W3WP Advanced Attacher available in the Visual Studio Gallery. I found it by searching in the Online Gallery of Extension Manager for "attach worker".

这篇关于在VS2010中,有没有办法知道给定w3wp.exe服务的应用程序池,然后决定附加调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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