Android的logcat中没有显示日志当我切换设备 [英] Android Logcat not showing logs when I switch devices

查看:547
本文介绍了Android的logcat中没有显示日志当我切换设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的logcat来帮助诊断我的Andr​​oid的问题。我经常有插在手机和仿真器上运行。有时我调试仿真器,有时我调试手机上,或者甚至第三个设备。

I am trying to use Logcat to help diagnose my android issues. I frequently have a phone plugged in AND an emulator running. Sometimes I debug on the emulator, sometimes I debug on the phone, or maybe even a third device.

的logcat不继续显示消息的设备被切换之后。我怎么可以指定logcat的做,或迫使其恢复日志记录,而无需重新启动日食?

Logcat does not continue to show messages after a device is switched. How can I specify what Logcat does or force it to resume logging without restarting eclipse?

洞察AP preciated

Insight appreciated

推荐答案

我有时注意到这一点。通常两种情况之一的伎俩。首先,打开设备视图,验证新设备的展示,然后再切换回LogCat中。这似乎踢logcat的付诸行动了。

I've noticed this at times. Usually one of two things does the trick. First, open the Devices view, verify that the new device is showing, and then switch back to Logcat. That seems to kick Logcat into action again.

如果不工作,然后在设备视图菜单中,选择重新启动亚行(我认为这就是它叫,我没有它的时刻打开)

If that doesn't work, then in the Devices view menu, select "Restart ADB" (I think that's what it's called; I don't have it open at the moment).

如果即使不工作,然后杀死并重新启动命令行亚行服务器并重复上述。

If even that doesn't work, then kill and restart the ADB server from the command line and repeat the above.

这篇关于Android的logcat中没有显示日志当我切换设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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