If you have multiple application pools started in IIS 7 and you want to determine which w3wp.exe process to attach the Microsoft Visual Studio 2010 debugger to, you can use the Microsoft Windows Task Manager.

Start the Microsoft Windows Task Manager: press [Ctrl + Shift + Esc].

Add the columns "PID" and "Command Line" to the Process tab.



The name of the application pool will be shown in the Command Line Column.

In this case the WCF service I wanted to debug, was running on the default [ASP.NET v4.0] application pool.

The Microsoft Windows Task Manager, shows the PID of this w3wp.exe processes as 8188, so now I can attach the Microsoft Visual Studio debugger, to the process with ID 8188, to start debugging the WCF service

4 Replies to “Determine the correct w3wp.exe process ID, to attach the Microsoft Visual Studio debugger to, by using the Windows Task Manager”

  1. Hello,

    there is another way to show correct w3wp process. I’ve used it on IIS 6…

    in the command window type:

    Result displays all active application pools:
    W3WP.exe PID: 6060 AppPoolId: ASP_Kysuce



  2. Indeed, but that requires installation of the IIS 6 compatibility modus on IIS7.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts