All things Xamarin, SharePoint, and .NET related
How to find out what process is running SharePoint 2010 so you can connect to debug

How to find out what process is running SharePoint 2010 so you can connect to debug

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.

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny