Search code examples
sharepointweb-parts

Find The correct process Id in visual studio for debugging sharepoint?


When i want to attache a process Id with the w3wp.exe to my solution in visual studio and debug my web part in sharepoint I have more than one w3wp.exe process . How can I find the correct process id of my sitecollection and attach my solution to that.


Solution

  • Open Command Prompt and Run following command

    "appcmd list wps"

    It wil gives you all app pool with id.

    (appcmd.exe can be found in %windir%\system32\inetsrv)