Exception 如何捕获monotouch/ios中的所有崩溃异常?
我在main.cs中包装了日志代码以捕获异常,但monotouch构建的应用程序通常在iPad中崩溃,我找不到任何日志。(某些代码包含多线程操作和wcf服务) 如何捕获所有崩溃异常Exception 如何捕获monotouch/ios中的所有崩溃异常?,exception,xamarin.ios,Exception,Xamarin.ios,我在main.cs中包装了日志代码以捕获异常,但monotouch构建的应用程序通常在iPad中崩溃,我找不到任何日志。(某些代码包含多线程操作和wcf服务) 如何捕获所有崩溃异常 public class Application { // This is the main entry point of the application. static void Main (string[] args) { // if you want to use a d
public class Application
{
// This is the main entry point of the application.
static void Main (string[] args)
{
// if you want to use a different Application Delegate class from "AppDelegate"
// you can specify it here.
try
{
UIApplication.Main (args, null, "AppDelegate");
}
catch (Exception ex)
{
Util.LogException("Main",ex);
}
}
}
本机崩溃无法转换为托管异常(进程的状态无效,因此无法安全继续) 有两种类型的信息可以帮助您(或帮助他人帮助您)了解发生了什么:
- 事故报告
- 设备日志