Android的logcat的登录真正的设备只有信息的水平。无法获得调试消息,甚至没有未处理的异常 [英] Android logcat logging only info level on real device. Cannot get debug messages, not even unhandled exceptions

查看:236
本文介绍了Android的logcat的登录真正的设备只有信息的水平。无法获得调试消息,甚至没有未处理的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Android开发有一段时间了,至今我没有用logcat的任何问题。到现在为止,我有新手机的发展,华为Y300(Y300-0100)和logcat中没有来自DEBUG级别的消息。这是问题,因为我没有得到异常堆栈跟踪打印。我必须使用仿真器,你知道,很是烦人。

I am developing for android for some time, and so far I didnt have any problem with logcat. Until now, i have new phone for development, Huawei Y300 (Y300-0100) and in logcat there is no messages from DEBUG level. This is problem, because I don't get Exceptions stack trace prints. I have to use emulator for that, you understand that it is annoying..

到目前为止,我想通了这一点:

So far i figured out this:

从:

    Log.v("TEST VERBOSE", "verbose level");
    Log.d("TEST DEBUG", "debug level");
    Log.i("TEST INFO", "info level");
    Log.w("TEST WARN", "warn level");
    Log.e("TEST ERROR", "error level");
    Log.wtf("TEXT WTF", "?? level");

只有这个是印:

Only this was printed:

    INFO/TEST INFO(21224): info level
    WARN/TEST WARN(21224): warn level
    ERROR/TEST ERROR(21224): error level

在模拟器着,当然所有的人都打印出来。
而在previous手机也没有问题(华为G300和中兴刀片)。

On emulator, ofcourse all of them are printed.
And on previous phones there was no problem(Huawei G300 and ZTE Blade).

我一直在寻找了一段时间的解决方案,并没有发现任何。

I have been searching for solution for sometime, and did not find any.

推荐答案

试着按照这些说明。我有同样的手机和我面临同样的问题,直到我tryied了。

Try to follow these instructions. I have the same phone and I was experiencing the same problems until I tryied that.

这篇关于Android的logcat的登录真正的设备只有信息的水平。无法获得调试消息,甚至没有未处理的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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