Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

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

share|improve this answer
5  
The key is setting the deployment configuration to No Activation otherwise your Feature Receiver runs during deployment and cannot be debugged –  Rob Windsor Sep 29 '11 at 14:50
    
Using System.Diagnostic.Break() will work perfectly on activating, or am I wrong here ? –  Frederik P. Feb 14 '12 at 8:43
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.