create a batch file called spr.bat and put following in it
@echo off PATH=%PATH%;c:\windows\system32\inetsrv appcmd list wp
open cmd window where spr.bat file is and run it
Output:
WP "9892" (applicationPool:SharePoint - 80) WP "1784" (applicationPool:SecurityTokenServiceApplicationPool) WP "8528" (applicationPool:9ce61ca73f1b467e9220944802480282) WP "9768" (applicationPool:SharePoint Central Administration v4)
So I would connect to process 9892 to debug my code.