Steps to follow to debug SharePoint code
we can identify the correct process associated to the correct application pool by following the below steps:
Note: The worker process ID gets changed/reset each time the application pool is recycled or reset
- Open the project solution in Visual Studio
- Debug Menu -> Attach to Process
- Select “Show processes from all users”
- Select the “correct” w3wp.exe process that your web application runs under
- How can we identify the correct w3wp.exe associated with the application pool which we are running from the listed processes
we can identify the correct process associated to the correct application pool by following the below steps:
Note: The worker process ID gets changed/reset each time the application pool is recycled or reset
- Start > Run > Cmd
- Go To Windows > System32 > Inetsrv
- Run appcmd list wp
- check the id associated with the application pool which we are looking for
- Now go back and attach to the w3wp process possessing the id associated with the application pool above
No comments:
Post a Comment