在平板电脑查看logcat中 [英] Viewing logcat in tablet

查看:531
本文介绍了在平板电脑查看logcat中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来查看运行4.4平板电脑日志?我已经下载了几个应用程序,如aLogCat其中没有显示什么我的应用程序可写出S.o.p或Log.d.我有一个间歇性的错误,给不幸的是应用程序的名字已经停止message.Is有什么办法可以查看此事件后,日志,而无需连接到PC,并使用亚行计划?
那里得到调试输出有什么其他的方法是?将捕集的System.out和System.err类得到的堆栈跟踪?

Is there a way to view the log on a tablet running 4.4? I've downloaded several apps like aLogCat and none of them show what my app writes out with S.o.p or Log.d. I have an intermittent bug that gives the Unfortunately appname has stopped message.Is there any way to view the log after this event without having to connect to a PC and use the adb program? What other ways are there to get debug output? Would trapping the System.out and System.err classes get the stack trace?

谢谢,
规范

推荐答案

您会侧重于特林读出logcat的,但也有阅读崩溃日志更好的解决方案。我个人的preference是 Crashlytics ,该自动记录致命异常和用于记录其他消息的机制。

You're focussing on tring to read out logcat, but there are better solutions for reading crash logs. My personal preference is Crashlytics, which automatically logs fatal exceptions and provides mechanisms for logging other messages.

所有这些碰撞记者的工作方式,是通过定义UncaughtExceptionHandler的:

The way all these crash reporters work, is by defining a UncaughtExceptionHandler:

Thread.setDefaultUncaughtExceptionHandler(
            new MyUncaughtExceptionHandler(this));

如果您preFER使用自己的解决方案,你可能想看看用这个。 <一href=\"http://stackoverflow.com/questions/2764394/ideal-way-to-set-global-uncaught-exception-handler-in-android\">See有关详细信息,此相关的问题。

If you prefer to use your own solution, you may want to look into using this. See this related question for more details.

这篇关于在平板电脑查看logcat中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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