vs2008附加到进程,看不到哪个进程

[英]vs2008 attach to process, can't see which process


In vs2003 (and vs2005(not sure about that)) when I attached to a process, before actually attaching I could see which process were running under w3wp (I have a couple of websites running locally) so I knew which exact .net application I was about to debug.

在vs2003(以及vs2005(不确定))当我附加到进程时,在实际附加之前我可以看到哪个进程在w3wp下运行(我有几个本地运行的网站)所以我知道哪个精确的.net应用程序我即将调试。

however in vs2008 the window doesn't show up anymore.. now I have to attach it, come to the conclusion it was the wrong process, stop debugging and attach it to the other process (if I haven't forgot teh processid :P )

然而在vs2008中,窗口不再显示了..现在我必须附加它,得出结论是错误的进程,停止调试并将其附加到其他进程(如果我没有忘记teh processid:P )

Is there a way to "enable" that interesting window to see with .net apps are runnig in that specific w3wp process? or am i missing something obvious?

有没有办法“启用”有趣的窗口看到.net应用程序在特定的w3wp进程中运行?还是我错过了一些明显的东西?

4 个解决方案

#1


You can find out the PID - App Pool Id-combo by:

您可以通过以下方式找到PID - App Pool Id-combo:

  1. Log on the the remote server and start a command prompt session.
  2. 登录远程服务器并启动命令提示符会话。

  3. Run the following script: c:\windows\system32\iisapp.vbs. This script will list all the currently running w3wp.exe processes, listing their PID and application pool id. The application pool id is the only relation between the pid and your app.
  4. 运行以下脚本:c:\ windows \ system32 \ iisapp.vbs。此脚本将列出所有当前运行的w3wp.exe进程,列出其PID和应用程序池ID。应用程序池ID是pid和您的应用程序之间的唯一关系。

  5. Use the apprioriate PID to identify the correct w3wp.exe on the Attach to Process screen.
  6. 使用apprioriate PID在“附加到进程”屏幕上标识正确的w3wp.exe。

This will produce a listing like this:

这将产生这样的列表:

W3WP.exe PID: 4784   AppPoolId: ReportServer
W3WP.exe PID: 6564   AppPoolId: TrunkTest
W3WP.exe PID: 220   AppPoolId: v650
W3WP.exe PID: 6420   AppPoolId: v650Test
W3WP.exe PID: 7220   AppPoolId: Trunk

From: Remote debugging with ASP.NET 2.0 - finding the process id (PID) of the worker process

From:使用ASP.NET 2.0进行远程调试 - 查找工作进程的进程ID(PID)

#2


I don't think this was ever a feature in Visual Studio.

我认为这不是Visual Studio中的一个功能。

What you probably need is iisapp.vbs.

您可能需要的是iisapp.vbs。

#3


At the bottom of the Attach to Process dialog box you should see two checkboxes:

在“附加到进程”对话框的底部,您应该看到两个复选框:

  • Show processes from all users
  • 显示所有用户的流程

  • Show processes in all sessions
  • 在所有会话中显示流程

If you check either / both of these you should hopefully be able to see the processes you are after.

如果你检查这两个中的任何一个,你应该希望能够看到你所追求的过程。

#4


You can skip looking up the process id and scrolling through the process list to find it, and turn attaching into a one-click deal. See my answer to a related question.

您可以跳过查找进程ID并滚动进程列表来查找它,并将附件转换为一键式交易。请参阅我对相关问题的回答。

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2009/06/10/7205e9678ec0d3eae468bad5c3c4778a.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告