Guru Prasad's profileSharePoint JourneyPhotosBlogListsMore Tools Help

Blog


    March 01

    Debug SharePoint WebParts - VS 2005

    With VS 2003 and SPS 2003/WSS2.0, it was totally different. There was just one w3wp process you need to attach the debugger to.

    How to debug in VS 2005?

      1. Click on Debug, and then on Attach to Process...
      2. Look for w3wp.exe process. If you don't see one,check "Show processes from all users" and "Show Processes in all sessions".
      3. Select all w3wp.exe processess that run under the security account that sharepoint is running under. If you are not sure about the security account you may select all w3wp.exe processess listed in there.
        • If you select only one and if it happens to be not the right process, you may see  this icon(which means, The breakpoint will not be currently hit. No symbols have been loaded for this document) instead of  at  your breakpoint. You may want to check to see if there are additional w3wp.exe processes running or the check boxes mentioned in the step 2 are checked.
      4. Click on Attach
      5. Open the page that includes your WebPart.
      6. You will now notice that as the page renders the control switches to the VS Debugger.

    Click here to know Which w3wp.exe process belongs to which App Pool in IIS6.0

    Quick Access Keyboard shortcut Tip for attaching the processes to the debugger: ALT + D, then hit P, and then hit W. 

     

    Hope this will be useful for beginners in the WebPart development.

    First Post!

     I have been thinking about blogging for a long time ever since I have sneaked into the SharePoint platform.  Finally, here I am with my First Blog Post. I will be updating this space as frequently as possible with both SharePoint and personal musings.