Debugging Crashes of your apps and games on Windows Phone 8

Debugging Crashes of your apps and games on Windows Phone 8

Rate This
  • Comments 7

 

One of the questions I get from game developers  is around debugging of a App/Game after they see reported crashes

Here is a quick guide to how to debug the crash logs from the WP8 dev center

Firstly you need to download and analysis the crash logs

Login to https://dev.windowsphone.com
Click Dashboard
Click Reports
Select Crash Count
Click Export Strack Traces
This will download a .cab

If you then look up specific error numbers at https://dev.windowsphone.com/ and http://msdn.microsoft.com a specific link to Debugging on Windows Phone http://dev.windowsphone.com/en-US/OEM/docs/Debugging/Debugging_Windows_Phone

To Analyse the log

You need to save the .cab then right click and extract it.

Then double click on the mini dump file and open into VS.

They will see something similar to below.

clip_image002

This gives limited info because the debug symbols are missing.

Getting symbols

The symbols are located in two places. To install all available symbols, do the following two steps:

  1. Run the provided symbols installers from the WDK download on the Windows Connect site http://msdn.microsoft.com/en-us/library/windows/hardware/ff557573(v=vs.85).aspx.

  2. Run setup.exe from the Windows Phone download on the Connect site. Check the desired boxes for Debugger Symbols, and click the Next button.

    Add the paths of the symbols to the symbol path. For example, you can use .sympath inside the debugger to add folder locations. For more information, see Symbol path.

    For a large workgroup, consider creating a symbol server. For more information, see Symbol stores and symbol servers.

You can then load them in using the links on the right.

If you don't install the symbols “Debugging with native only “ gives the limited call stack:

clip_image004

Leave a Comment
  • Please add 6 and 4 and type the answer here:
  • Post
  • Must I be using the development preview of Windows Phone 8.1 ? I have an app I really need to debug an error and send to the author !

  • Thanks for sharing!

  • Clicking "Export top stack traces from the last 30 days" only gives me an xlsx file. Is it possible to get the cab download if your app is in beta (hidden) status?

  • Oh, never mind. The CAB download is in the final column of the xlsx :)

  • terrible "article"

    what is it about developers that render them completely unable to write accurate instructions.

    firstly:

    "Click Export Strack Traces

    This will download a .cab"

    no it wont. it will download an excel spreadsheet. the final column in that spreadsheet is the link to the cab files.

    next up "getting symbols"

    "Run setup.exe from the Windows Phone download on the Connect site. Check the desired boxes for Debugger Symbols, and click the Next button" Assuming the connect site is the link previously posted there isnt even the word "phone" located on that page.

    its no suprise windows phone is a failing platform if this is the kind of 'help' that is posted on msdn

  • Where am I supposed to get this? "Run setup.exe from the Windows Phone download on the Connect site. Check the desired boxes for Debugger Symbols, and click the Next button."

  • I'm seeing a .cab file column, but there is no link in there? Does anyone know why that is?

Page 1 of 1 (7 items)