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並滾動進程列表來查找它,並將附件轉換為一鍵式交易。請參閱我對相關問題的回答。


注意!

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



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