Android的logcat中没有显示日志当我切换设备当我、设备、日志、Android

2023-09-05 07:13:52 作者:超拽的7个字男生:裤裆里全是杀气

我想使用的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.