Your friend iisapp.vbs (VS Remote Debugging)

If you are going to do a remote debugging with Visual Studio, you will need to know exactly which processes you want to debug. In case you are working with some web application linked to IIS 6.0 (WS 2003), you should be careful and know its corresponding application pool.

Each application pool has one or more worker processes and they are unique to the application pool and are not shared across application pools. See the Web Garden section in the screenshot that follows:

Therefore, if you are going to debug your remote web application, you will need to attach to all the worker processes (w3wp.exe) from Visual Studio:

In the server side, you should see the connection:


However, if you have many application pools, to find out which are your needed w3wp.exe process will be a heavy task. Now you will need our useful script iisapp.vbs (~/System32/iisapp.vbs) that show us a summary of processes and application pools:


Note: Don’t forget to place the pdb files in assembly folder of the remote server !!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s