Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieving crash-dump from Windows Phone 8 devices

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!

like image 402
szt69 Avatar asked May 17 '14 15:05

szt69


3 Answers

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/

like image 114
ickydime Avatar answered Oct 22 '22 02:10

ickydime


  1. Developer unlock your device.
  2. Turn on "Settings/feedback/Save info" option in the phone settings
  3. Wait for crash
  4. Connect the phone with USB and navigate to \Phone\Documents\Debug\yourApp.dmp
  5. Here is an article about analyzing it.

enter image description here

like image 38
Dominik Antal Avatar answered Oct 22 '22 00:10

Dominik Antal


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.

like image 1
Ertay Shashko Avatar answered Oct 22 '22 01:10

Ertay Shashko