简体   繁体   English

如何判断哪个应用程序在Android Studio中生成调试语句?

[英]How can I tell which app is producing debug statements in Android Studio?

I'm trying to figure out what is producing this debug output: 我想弄清楚产生这个调试输出的是什么:

04-25 15:58:04.883 1542-5012/? 04-25 15:58:04.883 1542-5012 /? D/NetworkStatsCollection: getHistory:mUID 10266 isVideoCallUID: false 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 使用adb shell ps | fgrep 1511 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. adb shell ps | fgrep 1511看看哪个应用程序与1511的PID绑定,根据你的LogCat输出是正在进行日志记录的应用程序。

(BTW, in the future, please post LogCat output as text, not screenshots) (顺便说一句,将来,请将LogCat输出发布为文本,而不是截图)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM