Hi Nic, I think I can't get the log with
try {
UIApplication.Main (args, null, "AppDelegate");
}
catch(Exception ex) {
TestFlight.Log("Unhandled Exception: " + ex.Message);
// rethrow to resume normal action on unhandeled exceptions......
// app crash
// This do not logged nothing on TestFlight on crashes received
throw;
}
Because it is crashing at ViewWillAppear on the first ViewController, and
maybe TestFlight can't get enough time to send "TestFlight.Log("Unhandled
Exception: " + ex.Message)"
I put a 7,5 seconds to try to wait on unhanded crashes so waiting now for
the next unhanded to see if that made something but it's just a guess.
I have the impression that TakeOff is to begin to TestFlight to do
something, like to begin a session. A lot of guesses to program, really
good. But I really want to see the ex.Message on TestFlight.
Karl
From: Nic Wise <[email protected]>
Date: quarta-feira, 12 de setembro de 2012 16:43
To: Karl Heinz Brehme Arredondo <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [MonoTouch] Best way to catch .NET crash with TestFlight
I do the catch etc around Main, and log to both a file and testlight,
and so far, it's worked. I've had crash reports go to testflight, but
they are just text ones, not the full crashdump (well, they might be,
I tend to want more info than a crashdump provides)
I also call takeoff in finishedLaunching and also WillEnterForeground,
dont I dont know if thats needed.
On Tue, Sep 11, 2012 at 10:56 PM, Karl Heinz Brehme Arredondo
<[email protected]> wrote:
> Hi..
>
> Due to some unpredictable (and almost unreproducible) crashes in the
> application, I finally put TestFlight SDK inside it (I didn't know it
> exactly before).
>
> The question is, what is the best way and why to send this crash log in a
> way that could be understandable? I mean, it appear that the info at
> TesfFlight was a little different that Xcode in a local test, with more info
> (but not so good more info) in local crash log instead remote TestFlight
> crash log.
>
> I'd like to see something like .NET error to understand what was made and
> where user was at crash
>
> I tried that, in Main.cs, found in a website that I don't remember now
> (#shame):
>
> TestFlight.TakeOff("xxxx");
>
> try {
>
> UIApplication.Main (args, null, "AppDelegate");
>
> }
>
> catch(Exception ex) {
>
> TestFlight.Log("Unhandled Exception: " + ex.Message);
>
> // rethrow to resume normal action on unhandeled exceptions......
>
> // app crash
>
> // This do not logged nothing on TestFlight on crashes received
>
>
> throw;
>
> }
>
>
> But in Github samples from Miguel, it is in AppDelegate.cs on
> FinishedLaunching:
>
> public override bool FinishedLaunching (UIApplication app, NSDictionary
> options)
> {
> TestFlight.TakeOff("yyyy");
>
> window = new UIWindow (UIScreen.MainScreen.Bounds);
>
> viewController = new TestFlightSampleViewController
> ("TestFlightSampleViewController", null);
>
> window.RootViewController = viewController;
>
> window.MakeKeyAndVisible ();
>
> return true;
> }
>
>
> What is the best way to use TestFlight to get crash logs and how to get .NET
> unpredictable error log?
>
> Thanks,
>
> Karl
>
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
--
Nic Wise
t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop.
http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding!
http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch