Sharepoint solutions

March 21, 2009

Debug net code that is called asynchronously for the user in sharepoint

Filed under: main — admin @ 10:52 pm

There is some trouble to debug net code that  is called by the system in sharepoint. For example owstimer can call custom expiration formula class asynchronously for the user. So, the ordinary method to attach visual studio debugger do not help. The solution is very simple – insert Debug.Assert(1==2, “some message”) statement in your code. When the exeption occures, press retry and choose visual studio debugger. Cetainly the custom class must contain debug information and do not be optimized.

1 Comment

  1. I found your blog website on google and examine a number of of your early posts. Continue to keep up the very good operate. I just further up your RSS feed to my MSN News Reader. Looking for ahead to studying more from you later on!…

    Comment by Darrin Mohead — March 28, 2012 @ 5:35 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress