Now with SharePoint and Dynamics CRM running on the same dev box, attaching to a Process ID can become a challenge in identifying which one is what.
Luckily, IIS comes to the rescue. In a command prompt, run appcmd with the list command to list all the worker processes and the associated application pools. The command looks like so:
appcmd list wp
you need to have the PATH mapped to C:\Windows\System32\inetsrv
Now you don’t have to attach the VS debugged to all w3wp processes, just pick the one you want to debug against.