Hi friends, this post about debugging SharePoint solution which
are created using Visual Studio 2010 or Visual Studio 2012.
When we create any Visual studio solution for SharePoint and
deploy it’s WSP on any environment like QA Environment, Staging and production
then some time we require to debug the solution to investigate execution
process.
Some time even in Development environment debugging
SharePoint site takes much time to reach execution debug point. In such cases
we can debug SharePoint solution using IIS process method.
To start debug any SharePoint portal you need to check
following things.
è
Check whether your updated solution is
deployed in environment (other than Dev Env)
è
Get your latest Visual studio project solution which is deployed in
SharePoint site.
Do following step to debug your solution:
iis6.0:
ð
Run command prompt and navigate to following
location:
c:\Windows\System32>
ð
Type below command:
c:\Windows\System32>iisapp.vbs
ð
Above
command will display list of processes id with application pool
ð
You can easily find the SharePoint portal
address with application pool on command prompt.
IIS 7.5:
ð
Run command prompt and navigate to following
location:
c:\Windows\system32> cd inetsrv
c:\Windows\system32\inetsrv>appcmd list wp
ð
Above command will display list of processes id
with application pool
ð
You can easily find the SharePoint portal
address with application pool on command prompt.
è
Now go to your Visual studio solution =>
Debug=>Attach Process
è
Here you will find the list of process id where
you need to attach the process id of you SharePoint application pool
è
Once correct process id is attached go to your
SharePoint Site and click on the event that you want to monitor.
No comments:
Post a Comment