有人可能找到了这个bug的一些解决方法:
https://bugzilla.xamarin.com/show_bug.cgi?id=30513
?
它让我疯狂... 截图是我从异步方法得到的异常报告。
有人可能找到了这个bug的一些解决方法:
https://bugzilla.xamarin.com/show_bug.cgi?id=30513
?
它让我疯狂... 截图是我从异步方法得到的异常报告。
这里有另一个解决方案,对于我来说很有效。只需在您的应用程序或主活动中添加此处理程序:
AndroidEnvironment.UnhandledExceptionRaiser += delegate(object sender, RaiseThrowableEventArgs args){
typeof (System.Exception).GetField("stack_trace", BindingFlags.NonPublic | BindingFlags.Instance)
.SetValue(args.Exception, null);
throw args.Exception;
};
上一篇帖子中有解释,链接如下:https://forums.xamarin.com/discussion/45219/stack-trace-not-captured-properly
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) =>
{
args.Handled = true;
}
完成上述步骤后,Xamarin.Insights就可以为您正常工作了 :)