简体   繁体   English

Android Studio-一旦手机以恒定的logcat流连接,调试就会开始

[英]Android Studio - Debugging starts as soon as phone is connected with constant logcat stream

Apologies if this seems like a silly question - but I'm fairly new to Android Studio. 抱歉,这似乎是一个愚蠢的问题-但我对Android Studio还是陌生的。

I'm currently developing an android application using Android Studio. 我目前正在使用Android Studio开发一个android应用程序。 I started my project on one computer and have had to relocate to another one to continue. 我在一台计算机上开始了我的项目,不得不重新定位到另一台计算机才能继续。

When I open my application in Android Studio and connect my phone to the computer via USB, it immediately starts 'debugging' with a constant stream of messages in the logcat. 当我在Android Studio中打开应用程序并通过USB将手机连接到计算机时,它会立即在logcat中以恒定的消息流开始“调试”。 This did not happen on my previous computer and nothing in the project has changed. 这在我以前的计算机上没有发生,项目中的任何内容都没有更改。

I have launched the Device monitor to try end the process but the 'stop' button is shaded out when my device is selected so I am unable to end it that way. 我已经启动了设备监视器以尝试结束该过程,但是当选择我的设备时,“停止”按钮显示为阴影,因此我无法以这种方式结束它。

Any advice would be greatly appreciated! 任何建议将不胜感激! Thanks :) 谢谢 :)

What you see is a valid and expected behaviour, it shows the overall stream of log generated by the phone, for example it may be a combined stream of logs for applications installed and system processes etc. 您看到的是有效的预期行为,它显示了电话生成的日志的总体流,例如,它可能是安装的应用程序和系统进程等的组合日志流。

If you need to debug your own application, then run/debug the application and filter the logs according to the application's package name. 如果需要调试自己的应用程序,请运行/调试应用程序,并根据应用程序的程序包名称过滤日志。

You can read more on : http://developer.android.com/tools/debugging/debugging-studio.html 您可以阅读以下内容的更多信息: http : //developer.android.com/tools/debugging/debugging-studio.html

我希望您已将“日志级别”设置为详细,请尝试将其设置为“信息”或Android Studio底部“ Android监视器”选项卡的下拉菜单中的其他任何级别。

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

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