android - 在 JellyBean 上使用 LogCat

标签 android debugging android-logcat

我有一个非常随机发生的错误,所以我依靠从 Play 商店购买的 LogCat 监控应用程序来查看发生时在我的设备上抛出的异常。自从使用 Jelly Bean 以来,我没有看到任何日志记录。我读过,使用 Jelly Bean,应用程序只能看到其自身的 LogCat 输出。

所以除了对我的设备进行 root 之外,有什么方法可以直接在我的手机上读取我的应用程序的 LogCat 输出?我知道我可以使用 Eclipse,但是,正如我所说,它是随机发生的,我无法手动重新创建它。

最佳答案

So outside of rooting my device, is there any way to read the LogCat output of my app on my phone directly?

不是真的。您可以阅读关于 aLogcat bugtracker 的讨论关于这个问题:

After doing some reading and some testing, I've found three ways to make aLogcat work, all of which use root.

关于READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)的更详细讨论

关于android - 在 JellyBean 上使用 LogCat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12407797/

相关文章:

Android BluetoothSocket 连接返回零

excel - 此时无法进入休息模式

android - 为什么我偶尔会在 logcat 中看到 "MediaPlayer finalized without being released",即使我没有在任何地方使用 MediaPlayer?

android - 扩展 Android.util.Log 以写入文件

android - 如何在 Android Studio 1.0 中查找过滤器 Logcat 配置?

android - 如何在带有模块化代码的 fragment 中使用 LeakCanary 检测内存泄漏?

java - 构造函数 BitmapDrawable() 已弃用修复

android - NestedScrollView 内的 RecyclerView 导致 RecyclerView 膨胀所有元素

c# - 由调试器引起时命中断点

c++ - 当变量在 Visual Studio C++ 调试器中显示为红色时,这意味着什么?