title: In VS2010, is there a way to know which application pool a given w3wp.exe is serving, to then decide to attach the debugger to?
body: <p>So I'm debugging some websites (one from trunk, one from branch) running locally, in separate apppools.  I have trunk and branch solutions open in two VS instances.  I'd like to debug trunk in one, and branch in the other.  I'd like to know if there's a way to know which application pool each w3wp.exe is serving, to know which one is which when attaching the debugger.</p>
  
  <p>Update: the point of this is to write a macro within VS to then let me have a button (per app-pool that is interesting) which will be clickable to attach the debugger to.  So solutions should preferably not involve other programs.</p>
  
  <p>Update2: this is on Windows 7 against IIS7.</p>