I am trying to report exceptions to smart assembly. I have a method in my application which is called whenever an exception occur. I want to add error reporting in that method. I have used this ExceptionReporting.Report(ex) in my method. Now, whenever I want to report some exception or any other exception is thrown that method gets called and it has that line of code. However, in the reports , the local variables and the stack trace are missing. In the wiki page of the SDK this is mentioned at the end of the page in the Misc section regarding my situation:
"If you want to manually send an exception to SmartAssembly's UnhandledExceptionHandler, you may use the method:
Note that the local variables and the stack trace are missing for the method which called Report. A workaround is to wrap the whole method up in a delegate or empty method."
Can someone show me an example for this workaround ?