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

Reply via email to