Saturday, May 24, 2008

How to Debug a code from SharePoint site?

Most of the times we face the problem while developing that how to debug the code written to create a web part or event handler. Here is the solution for it:

  1. Refresh your site once and then in Visual Studio Press ALT + D + P
  2. Make sure that the debugging mode is 'Managed Code' and not the native which is default value.
  3. You will see there will be a process by the name w3wp.exe . Select it and press attach.
  4. Now raise the event through the sharepoint site.

No comments:




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com