Identifying IIS worker processes

The other day I had to debug a running IIS process. There was a nifty little command to figure out which process to attach to:
C:\Windows\System32\Inetsrv\appcmd list wp
Apart from the terrible fact that I had to debug a running IIS process this was a useful command.