【问题标题】:Monotouch crashes with no exceptionsMonotouch 无一例外地崩溃
【发布时间】:2014-09-08 22:18:43
【问题描述】:

我构建了一个 monotouch 应用程序,它在用户完成注册后随机崩溃问题是没有抛出异常,我试图在设备上测试它时用调试器捕获它(当然我将它设置为捕获所有异常) 我什至尝试设置诸如 HockeyApp 之类的崩溃工具,但这些崩溃不会出现在任何地方。

我该如何解决这个问题?请帮忙!

【问题讨论】:

  • 您可以在设备的控制台中获取更多信息(您可以从 Xamarin Studio -> View -> Pads -> iOS Device Log 查看),并且崩溃报告将出现在 Xcode 的 Organizer 中(假设您不使用任何其他崩溃报告工具)。

标签: exception crash xamarin.ios


【解决方案1】:

您应该查看Raygun.io。它会将任何未处理的异常记录到仪表板。通过 nuget 包添加它,然后您可以在 Main.cs 中使用一行进行设置:

namespace Myapp.iOS
{
    public class Application
    {
        // This is the main entry point of the application.
        static void Main(string[] args)
        {
            Mindscape.Raygun4Net.RaygunClient.Attach("enter your api key here");

            UIApplication.Main(args, null, "AppDelegate");
        }
    }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-23
    • 1970-01-01
    相关资源
    最近更新 更多