Reputation: 441
Is there a way to get crash-dumps out of Windows Phone 8 during development time? I am after a file that is dumped similarly to when a normal Win32 app crashes. Or similar to what is saved on iOS devices at crash to be investigated at a later point.
My question is specifically about somehow retrieving this (or similar) file/info from the phone after a crash without me having to do anything in my code e.g. manually writing the stack trace to a file from an unhandled exception.
I am aware the option of getting "live" crash reports from a beta-submitted app but that is not what I am after.
Thanks!
Upvotes: 5
Views: 1632
Reputation: 1071
You can grab them on WP 8.1 by browsing to ThisPC/Windows Phone/Phone/Documents/Debug while the phone is connected.
Ref: http://mtaulty.com/2015/02/19/m_15734/
Upvotes: 4
Reputation: 3391
Upvotes: 2
Reputation: 544
You can get crash dumps from Windows Dev Center once you uploaded your app to Microsoft Beta - which you really should do before releasing it live. The app is available 2 hours after you upload it but the crash dumps will be available 3 days later.
No need to say you need to save your PDB files.
Upvotes: 1
Reputation: 1257
I don't think there is a crash-dump you can access. At least not on WP8. I can't say about 8.1, but I doubt it. Personally, I am using a custom LittleWatson class from this blog post:
http://darkgenesis.zenithmoon.com/adventures-in-unhandled-exception-handling-for-xnasilverlight/
Scroll down to 'Out of the box Silverlight" and grab the class. It is already rigged with an email task for sending the crash report if that comes in handy.
This will at least save you the time of writing a crash report saver manually.
Upvotes: 1