如何获得Android的崩溃日志? [英] How to get Android crash logs?

查看:785
本文介绍了如何获得Android的崩溃日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,是不是在市场上(与调试证书签名),但想拿到崩溃日志数据,每当我的应用程序崩溃。我在哪里可以找到一个日志,为什么我的应用程序崩溃?

I have an app that is not in the market place (signed with a debug certificate), but would like to get crash log data, whenever my application crashes. Where can I find a log of why my app crashed?

推荐答案

如果您的应用程序正在下载的其他人,并撞毁在远程设备上,你可能要考虑一个Android错误报告库(在this SO帖子)。如果它只是你自己的本地设备上,则可以使用 LogCat中。即使设备没有连接到主机的崩溃发生时,连接设备和发出亚行logcat 命令将下载整个logcat的历史记录(至少,这是缓冲,因而通常是记录数据的loooot的程度,它只是不是无限的)。做这些选项回答你的问题?如果没有,你可以尝试澄清,你要寻找的多一点?

If your app is being downloaded by other people and crashing on remote devices, you may want to look into an Android error reporting library (referenced in this SO post). If it's just on your own local device, you can use LogCat. Even if the device wasn't connected to a host machine when the crash occurred, connecting the device and issuing an adb logcat command will download the entire logcat history (at least to the extent that it is buffered which is usually a loooot of log data, it's just not infinite). Do either of those options answer your question? If not can you attempt to clarify what you're looking for a bit more?

这篇关于如何获得Android的崩溃日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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