如何调试在客户机器上崩溃的 Windows 应用商店应用程序? [英] How to debug a Windows Store app that crashes on a customer's machine?

查看:31
本文介绍了如何调试在客户机器上崩溃的 Windows 应用商店应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到一位客户的支持电子邮件,说他的应用在启动时崩溃了,他收到的只是如下消息:

I got a support email from a customer saying his app crashes when it starts and all he gets is a message like:

(App Name) 遇到问题您可以向 Microsoft 发送有关帮助改进此应用程序出了什么问题.

(App Name) ran into a problem You can send info to Microsoft about what went wrong to help improve this app.

将发送给 Microsoft 的文件C:\Users\User_Name\AppData\Local\Temp\WER####.tmp.appcompat.txtC:\Users\User_Name\AppData\Local\Temp\WER####.tmp.hdmp

Files that will be sent to Microsoft C:\Users\User_Name\AppData\Local\Temp\WER####.tmp.appcompat.txt C:\Users\User_Name\AppData\Local\Temp\WER####.tmp.hdmp

我想 - Microsoft 不会用我愚蠢的应用程序真正帮助他们.他们应该将转储文件发送给我进行调试,但是怎么做呢?我从崩溃的应用程序中获得的示例转储文件是 90MB,压缩后它仍然是 30MB.如何调试应用程序?有没有一种简单的方法可以从客户那里获取这些转储文件?这些也会在您从崩溃的应用程序窗口切换到桌面后立即被删除,除非您在快照视图中保持运行(崩溃)并点击 WinKey+D.

I thought - Microsoft isn't going to help them really with my silly app. They should send the dump file to me for debugging, but how to do it? A sample dump file I got from a crashing app was 90MB and after zipping it is still 30MB. How do I debug the app? Is there a simple way to get these dump files from a customer? These also get deleted right after you switched from the crashing app window to the desktop unless you leave it running (crashed) in snapped view and hit WinKey+D.

推荐答案

似乎 Windows 开发人员仪表板有一个选项可以为最常见的崩溃获取小型转储文件,这可以帮助找到问题(假设您的客户有以下问题之一)崩溃的最常见问题,或者实际上很少有问题导致您的应用程序崩溃,并且所有问题都存在).你只需要去:

It seems like the Windows developer Dashboard has an option to get mini dump files for most common crashes that could help find the problem (assuming your customer is having one of the most common problems for a crash or that there are actually few problems causing your app to crash and all of them are there). You just need to go to:

仪表板/应用程序/报告/质量/最常见的崩溃

Dashboard/App/Reports/Quality/Most common crashes

您可以在那里下载包含小型转储的 cab 文件.您可以通过将 cab 重命名为 zip 或使用提取 cab 档案的工具来提取文件.然后直接在WinDbg中打开转储文件就可以开始调试了!

There you can download a cab file that includes the mini dump from there. You might be able to extract the file by just renaming cab to zip or using a tool that extracts cab archives. Then just open the dump file in WinDbg and start debugging!

这篇关于如何调试在客户机器上崩溃的 Windows 应用商店应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆