Posted by admin on 5th August 2008

SharePoint debugging

I finally found a great article about debugging in SharePoint over at elumenotion.com. He talks about how you can debug your SharePoint project (or any other project I think) with your dll file in the Global Assembly Cache (GAC).

Check it out and be sure you set your <compilation debug=”true”>.

I got an exception “Cannot evaluate expression because the code of the current method is optimized.” while I debugged for the first time so I had to right-click on my project and uncheck “Optimize code” in Visual Studio 2008.

Finally I’m able to debug my project properly.

No comments yet!

Post your comments