Question

I need to debug my feature receiver, so I set up few breakpoints, but when I hit F5 in VS2010, they are all missed, and it says that "The breakpoint will not currently be hit. No symbols have been loaded for this document." What should I do to be able to debug my feature receiver?

Was it helpful?

Solution

Please follow this tutorial, I have done it thousands of time and it always work the same way.

http://msdn.microsoft.com/en-us/library/ff798479.aspx

OTHER TIPS

Also the dlls are deployed in GAC , so make sure change the settings. Follow this article

http://www.sharepointnutsandbolts.com/2007/03/how-to-debug-sharepoint-feature.html

First try rebuilding your project If that doesn't work, try to clean the project.

If that also doesn't work follow these steps.

  1. Right click your project
  2. Select [Properties]
  3. Select the [Build] tab
  4. Make sure [Define DEBUG constant] and [Define TRACE constant] are checked
  5. Click the [Advanced] button at the bottom of the Build tabpage
  6. Make sure that [Debug Info] is set to [full]
  7. Click [OK] and rebuild the project
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top