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 !!

About Ramon Tebar

Software Engineer specialised on Microsoft Technologies with experience in large projects for different industrial sectors as developer, consultant and architect. I enjoy designing and developing software applications, it is my job and one of my hobbies. I’m interested in design patterns, new technologies and best practices. Making those part of the ALM process is a great challenge. During the last years, I have specialised in Microsoft Dynamics CRM (now Dynamics 365). I customise and extend the platform to provide tailored solutions and integrations based on service-oriented architectures and messages queuing. Motivated by community events and contributor in blogs, technical books, open source projects and forums, I have been awarded Microsoft Most Valuable Professional (MVP) on Dynamics 365 (CRM) since 2012.

Posted on September 17, 2009, in Visual Studio, IIS. Bookmark the permalink. Leave a comment.

Leave a Reply

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

WordPress.com Logo

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

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: