Android重新连接调试器 [英] Android Reconnect Debugger

查看:144
本文介绍了Android重新连接调试器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用eclipse,我在调试模式下运行我的模拟器,我通过在模拟器中按F8模拟它们来测试网络中断。



当我禁用网络,我的调试连接丢失,并且仿真器没有显示在列表中,即使我尝试重新部署apk与调试运行。所以我必须关闭并重新启动我的模拟器。



所以我的问题总结是:有没有反过来将eclipse重新连接到仿真器在调试模式?如果没有,是否有办法在调试模式下重新部署apk,而无需重新启动我的模拟器?



旁注: p>

我试过看DDMS透视图,如:使用Eclipse与ADT重新连接到Android上的调试过程,但没有显示设备。

解决方案

在日食中,打开DDMS透视图



您会注意到设备标签最右侧的倒立三角形。 / p>

在此菜单中,您可以选择重置ADB。这将重置ADB服务器,并重新连接您的模拟器。



您可能会看到一条错误消息,告诉您进程没有正确重新启动 - 您可以忽略此消息。


Using eclipse, I run my emulator in debug mode and I'm testing network outages by simulating them by pressing F8 in the emulator.

When I disable the network, my debugging connection is lost and the emulator doesn't show up in the list even if I try to redeploy the apk with the debug run. So I have to close and restart my emulator.

So my questions in summary is: Is there anyway to reconnect eclipse to the emulator in debug mode? If not, is there a way to redeploy the apk in debug mode without me having to restart my emulator?

A side note:

I tried looking in the DDMS perspective as mentioned in: Reconnect to debug process on Android using Eclipse with ADT but no devices show up.

解决方案

In eclipse, open the 'DDMS Perspective'

You will notice an upside down triangle on the far right of the 'Devices' tab.

In this menu, you can select 'Reset ADB'. This will reset the ADB server, and reconnect your emulator.

You will likely see an error message telling you the process didn't restart properly - you can ignore this message.

这篇关于Android重新连接调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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