capturing dump on Windows Phone 8.1

萝らか妹 提交于 2019-12-06 00:37:23

The Silverlight 8.1 App.xaml.cs class has an UnhandledException event handler just like 8.0.

WinRT 8.1 apps on the other hand require you to add the handler yourself.

To do this, go to App.xaml.cs and in the constructor, add the following:

this.UnhandledException += App_UnhandledException;

Also add this event handler:

private void App_UnhandledException(object sender, UnhandledExceptionEventArgs e)
    {
        // Save the dump here.
    }

Do you require explicit dump handling on your own? If you publish through Store you should already be able to access "dumps" (more like stack-traces) from your Store accounts quality page.

http://msdn.microsoft.com/en-us/library/windows/apps/hh967782.aspx

http://blogs.msdn.com/b/windowsstore/archive/2012/06/27/improving-apps-with-quality-reports.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!