如何判断哪个应用在Android Studio中生成了调试语句? [英] How can I tell which app is producing debug statements in Android Studio?

查看:105
本文介绍了如何判断哪个应用在Android Studio中生成了调试语句?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出产生此调试输出的原因:

04-25 15:58:04.883 1542-5012/? D/NetworkStatsCollection:getHistory:mUID 10266 isVideoCallUID:false

上面的输出在插入手机的情况下连续运行.我没有在模拟器中看到此信息,并且我已经卸载了正在使用的应用程序,所以我认为不是那样.我尝试重新启动电话,但无济于事.我如何确定是什么应用导致了这个问题?

解决方案

使用adb shell ps | fgrep 1511查看与1511的PID绑定的应用程序,根据您的LogCat输出,该应用程序正在执行日志记录.

(顺便说一句,将来,请以文本形式而不是屏幕快照形式发布LogCat输出)

I'm trying to figure out what is producing this debug output:

04-25 15:58:04.883 1542-5012/? D/NetworkStatsCollection: getHistory:mUID 10266 isVideoCallUID: false

The above output runs continuously with my phone plugged in. I don't see this using the emulator and I've uninstalled the app I'm working on, so I don't think it's that. I've tried restarting the phone, to no avail. How can I determine what app is causing this?

解决方案

Use adb shell ps | fgrep 1511 to see what app is tied to the PID of 1511, which according to your LogCat output is the app that is doing the logging.

(BTW, in the future, please post LogCat output as text, not screenshots)

这篇关于如何判断哪个应用在Android Studio中生成了调试语句?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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