[英]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.


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?


4 个解决方案


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)


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

我認為這不是Visual Studio中的一個功能。

What you probably need is iisapp.vbs.



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.



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.




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