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

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

问题描述

使用Eclipse,我跑我在调试模式下模拟器,我在模拟器由pressing F8模拟测试他们的网络中断。

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

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

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.

所以,我在总结的问题是:反正有重新日食在调试模式下的模拟器?如果没有,有没有办法重新部署在调试模式下的apk没有我不得不重新启动我的模拟器?

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?

一个侧面说明:

我试图寻找在DDMS透视图中提到:<一href=\"http://stackoverflow.com/questions/6583227/reconnect-to-debug-process-on-android-using-eclipse-with-adt\">Reconnect在使用Eclipse ADT与Android的但没有设备显示的调试过程。

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.

推荐答案

在Eclipse中,打开DDMS透视

In eclipse, open the 'DDMS Perspective'

您会发现一个颠倒倒三角最右边的设备选项卡。

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

在此菜单中,可以选择重置ADB。这将重置ADB服务器,然后重新连接仿真器。

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天全站免登陆