Crash Log on Windows Phone 7 device

2019-01-28 00:35发布

问题:

I don't have a WP7 device yet. Everything is functional in My App on a Simulator, but when my customer test it, app does not function at all. e.g. VDO is not playing.

Is there a way to get a crash log from Windows Phone 7? (like iPhone).

回答1:

You can easily create your own crash report. Basically this is what you have to do:

  • In your App class add an handler for the UnhandledException event
  • inside the handler prepare a log with everything you need (stacktrace, memory allocated, etc.)
  • use an email composer Task to send the report.


回答2:

You can also check BugSense which is a cross-platform(iPhone,Android and Windows Phone) tool that collects and analyzes crash reports from mobile apps.

Disclaimer: I have developed the WP7 plugin.