Blu*_*Sky 2 exception xamarin.ios
我已经在main.cs中包装了日志代码以捕获异常,但是通过monotouch构建的app通常会在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 different Application Delegate class from "AppDelegate"
// you can specify it here.
try
{
UIApplication.Main (args, null, "AppDelegate");
}
catch (Exception ex)
{
Util.LogException("Main",ex);
}
}
}
Run Code Online (Sandbox Code Playgroud)