How to know which w3p process attach to the debugger?

advertisements

I have several apps hosted in IIS that are running at the same time. When I attach to a process in the Visual Studio debugger, I see several w3p processes. The only way I can tell which one to attach to is by trial and error (if I attach to the wrong one, the breakpoints say they will not be hit). How can I know right away which process to attach to?


Using the taskmanager, view processes, add column process id.

Trigger a page to see some CPU usage. Now you know the process to attach to.