{"id":229,"date":"2012-06-15T14:06:06","date_gmt":"2012-06-15T19:06:06","guid":{"rendered":"http:\/\/www.johndhutton.com\/?p=229"},"modified":"2016-08-03T15:46:53","modified_gmt":"2016-08-03T20:46:53","slug":"how-to-find-out-what-process-is-running-sharepoint-2010-so-you-can-connect-to-debug","status":"publish","type":"post","link":"https:\/\/www.johndhutton.com\/?p=229","title":{"rendered":"How to find out what process is running SharePoint 2010 so you can connect to debug"},"content":{"rendered":"<p>create a batch file called spr.bat and put following in it<\/p>\n<pre class=\"prettyprint lang-cpp\">@echo off\r\nPATH=%PATH%;c:\\windows\\system32\\inetsrv\r\nappcmd list wp<\/pre>\n<p>open cmd window where spr.bat file is and run it<br \/>\nOutput:<\/p>\n<pre class=\"prettyprint lang-cpp\">WP &#34;9892&#34; (applicationPool:SharePoint - 80)\r\nWP &#34;1784&#34; (applicationPool:SecurityTokenServiceApplicationPool)\r\nWP &#34;8528&#34; (applicationPool:9ce61ca73f1b467e9220944802480282)\r\nWP &#34;9768&#34; (applicationPool:SharePoint Central Administration v4)<\/pre>\n<p>So I would connect to process 9892 to debug my code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#34;9892&#34; (applicationPool:SharePoint &#8211; 80) WP &#34;1784&#34; (applicationPool:SecurityTokenServiceApplicationPool) WP &#34;8528&#34; (applicationPool:9ce61ca73f1b467e9220944802480282) WP &#34;9768&#34; (applicationPool:SharePoint Central Administration v4) So I would connect to &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-229","post","type-post","status-publish","format-standard","hentry","category-sharepoint"],"_links":{"self":[{"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=229"}],"version-history":[{"count":7,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":416,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=\/wp\/v2\/posts\/229\/revisions\/416"}],"wp:attachment":[{"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.johndhutton.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}