Debugging wsps deployed in Sharepoint through Visual Studio
23 10 2008Compliments of Shashi…a coworker of mine…
- Make sure to build your solution in debug mode.
- Deploy the debug version wsp (located in wsp/debug folder) to Sharepoint
- copy the .pdb file from bin/debug folder of whatever the solution you would like to debug to clipboard
- open up the gac folders using – Start-> run -> %systemroot%\assembly\gac_msil
- Open the folder of the solution you wish to debug till you find the .dll file
- Copy the copied .pdb file
- Bring up the site
- In Visual studio, click on Debug -> Attach Process (make sure “Show processes in all sessions is checked”)
- attach 2 w3wp.exe process and click on Attach if prompted
- Set the breakpoints
Go back to site and try to do your activities, if your breakpoint gets hit, it will show you the VS screen and you are good to go….
Comments : No Comments »
Categories : Ruby/Rails, SharePoint






