Usb系绳和调试的同时 [英] Usb tether and debug at the same time
问题描述
我需要在Android设备上进行网络连接来测试应用。我的笔记本电脑的WiFi适配器坏了,所以2个小时后,我通过USB设置了连接。但!当我启动Wired Tether以获取连接时,Eclipse没有看到设备。我无法调试我的应用程序。
I need network connection on my Android device to test apps. My notebook WiFi adapter is broken, so after 2 hours I've set connection via USB. But! Eclipse doesn't see the device when I start "Wired Tether" on it to get connection and I can't debug my apps.
有人知道如何解决这个问题问题?使用USB网络共享在手机上互联网连接,同时调试应用程序?
Does anybody know how to solve this issue? Use USB tethering to get internet connection on phone and debug apps at the same time?
推荐答案
我不知道一种方式同时使用USB调试和网络共享。以下是一些解决方法:
I don't know of a way to simultaneously use USB debugging and tethering. Here are some workarounds, though:
- 获取计算机的USB无线适配器(请参阅 http://www.amazon.com/gp/bestsellers/electronics/13983791/ref=pd_zg_hrsr_e_2_4_last )。我不知道是否在印度购买其中一个是您的选择。
- 将您的apk无线发送到您的手机进行应用安装(请参阅通过无线方式在基于android的设备上开发),然后直接在手机上查看logcat进行调试(aLogcat似乎受欢迎,并允许您通过电子邮件发送日志文件,以便您可以在计算机上打开它们以在更大的屏幕上查看)
- Get a USB wireless adapter for your computer (see http://www.amazon.com/gp/bestsellers/electronics/13983791/ref=pd_zg_hrsr_e_2_4_last). I don't know if buying one of these is an option for you in India.
- Send your apk to your phone wirelessly for app installation (see Developing on android-based device via wireless) and then view the logcat directly on the phone for debugging (aLogcat seems to be popular, and allows you to send log files via, for example, email, so that you can open them on your computer to view them on a bigger screen)
我知道这些解决方案涉及一些成本,努力或不便,但希望有一个可以为您工作。
I know these solutions involve some cost, effort, or inconvenience, but hopefully one will work for you.
编辑:
如@shkschneider和@CodeShane的回答中所述,通过蓝牙进行互联网共享是可能的。 CodeShane的回答提到了PdaNet(这显然也允许同时进行USB网络共享和调试),并且包括一个链接。另一个解决方案是 OpenGarden 。这些解决方案通过电话提供对计算机的互联网访问。如果需要相反(而且这个问题并不完全清楚),反向束缚似乎是答案(见@NickL的答案)。
As noted in answers from @shkschneider and @CodeShane, Internet sharing via Bluetooth is possible. CodeShane's answer mentions PdaNet (which apparently also allows for simultaneous USB tethering and debugging), and includes a link. Another solution is OpenGarden. These solutions provide access to the Internet for the computer via the phone. If the reverse is desired (and this is not entirely clear from the question), reverse tethering seems to be the answer (see the answer from @NickL).
这篇关于Usb系绳和调试的同时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!