Consider the following code:
public class ActivatorTest
throw new Exception();
ActivatorTest activatorTest = (ActivatorTest)Activator.CreateInstance(typeof(ActivatorTest));
When this is run on Xamarin.Android or Xamarin.iOS in VS2012, the debugger breaks at the call to Activator.CreateInstance with the following message: "Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation."
When I run this same code in a WP8 project, the debugger breaks at the original thrown exception.
Why is this? And is there any way I can get VS to break when the original exception is thrown? These issues are trivial to figure out on WP8, but a pain to track down in Xamarin projects.