Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,086 Members 54,417 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Retrieving crash-dump from Windows Phone 8

Tip us?
 
szt69
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
Location: Umdloti
Default [Q] Retrieving crash-dump from Windows Phone 8

(I am new and cannot post in dev forum, that's why I posted this here. Still hope someone will be able to help.)

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!
 
GoodDayToDie
Old
#2  
Recognized Developer
Thanks Meter 2645
Posts: 5,539
Join Date: Jan 2011
Location: Seattle
Can Visual Studio's debugger generate crash dumps? I'd expect so (I know windbg can, but I haven't managed to attach windbg to a phone app) and that would be the obvious approach.

Not sure why you want a dump when you can do live debugging, though...
Win8/Windows RT projects:
List of desktop apps for hacked RT devices

WP8 projects:
Native Access WebServer and Libraries
WP8 Interop Unlocks
Storage Cleanup tool

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.


Do not private message me with questions that should have been posted on the forum! Not only are you wasting your time - I'm not going to bother writing an answer to such a question for only one person - but I will probably block you from PMing me in the future as well.
 
szt69
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
Location: Umdloti
Quote:
Originally Posted by GoodDayToDie View Post
Can Visual Studio's debugger generate crash dumps? I'd expect so (I know windbg can, but I haven't managed to attach windbg to a phone app) and that would be the obvious approach.

Not sure why you want a dump when you can do live debugging, though...
Hmmm, I never thought of using windbg because that never came up as a tool that is used with WP8.. Will give it a try and see if I get anywhere.

I need a crash dump because the crash does not happen when a debugger is attached.

I am trying other options to catch the issue: isolating the code the crash might happen, dump the stack trace into a log file, but a crash log would be the most obvious place to look at and I am shocked that it is not possible or at least this hard.
 
GoodDayToDie
Old
#4  
Recognized Developer
Thanks Meter 2645
Posts: 5,539
Join Date: Jan 2011
Location: Seattle
There's a way on the ATIV S to get crash dumps (without even crazy hacks, I mean; it's a hidden option in the Diagnosis application) but I think they're only for the OS, not for individual apps.

A crash that only happens without the debugger attached is a very irritating sort of crash!
Win8/Windows RT projects:
List of desktop apps for hacked RT devices

WP8 projects:
Native Access WebServer and Libraries
WP8 Interop Unlocks
Storage Cleanup tool

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.


Do not private message me with questions that should have been posted on the forum! Not only are you wasting your time - I'm not going to bother writing an answer to such a question for only one person - but I will probably block you from PMing me in the future as well.
 
szt69
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
Location: Umdloti
Quote:
Originally Posted by GoodDayToDie View Post
There's a way on the ATIV S to get crash dumps (without even crazy hacks, I mean; it's a hidden option in the Diagnosis application) but I think they're only for the OS, not for individual apps.

A crash that only happens without the debugger attached is a very irritating sort of crash!
Amazing, I have access to an Ativ S device so will give a try! Thanks!
 
szt69
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: May 2014
Location: Umdloti
I have got a confirmation directly from Windows Phone team: what I am asking for is not possible at the moment.

I have provided them feedback on what kind of situation this can put some developers, I hope they will consider it and look into doing something about it.

In the meantime your options are to manually dump the stack trace (along with any info you want) from an unhandled exception or to upload your app for beta testing and check the crashlogs on the dashboard of your developer account.
 
GoodDayToDie
Old
#7  
Recognized Developer
Thanks Meter 2645
Posts: 5,539
Join Date: Jan 2011
Location: Seattle
Yeah, sorry. I should have mentioned that my approach is to always implement a custom unhandled exception function (there's a stub for it in App.xaml.cs) and either present an error message or write an error file. It's not a true crash dump, but it's often enough to help you find the spot where the problem occurred.

Hmm... I wonder how hard it would be to write a native component that would generate a crash dump on demand. I mean, it *should* be possible to do it, since you have raw pointer access and file I/O. I've just never tried.
Win8/Windows RT projects:
List of desktop apps for hacked RT devices

WP8 projects:
Native Access WebServer and Libraries
WP8 Interop Unlocks
Storage Cleanup tool

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.


Do not private message me with questions that should have been posted on the forum! Not only are you wasting your time - I'm not going to bother writing an answer to such a question for only one person - but I will probably block you from PMing me in the future as well.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...