简体   繁体   English

android,调试未连接到PC,没有wifi?

[英]android, debug not connected to PC, no wifi?

I need to set breakpoints in my program. 我需要在程序中设置断点。 However I can't be connected to PC for debugging, only for launching the app. 但是,我无法连接到PC进行调试,只能启动应用程序。 I have no wifi capability yet. 我没有wifi功能。 Can I put something on the tablet that will work? 我可以在平板电脑上放一些可以使用的东西吗? i have catlog but that is not what I nee on it's own. 我有目录,但那不是我自己需要的。 I tried to run the program in debug mode with hit count = 10 but it did not work. 我尝试在命中次数= 10的调试模式下运行该程序,但是它不起作用。 The program kept executing. 该程序一直在执行。

You can connect to adb over a network connection. 您可以通过网络连接连接到adb。 See: 看到:

How to debug Android application in phone sleep mode without USB connection 如何在没有USB连接的情况下在手机睡眠模式下调试Android应用程序

Android has an option for debugging via a network connection so that you can use your usb port for other hardware. Android具有通过网络连接进行调试的选项,因此您可以将USB端口用于其他硬件。

When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. 在调试使用USB附件或主机功能的应用程序时,您很可能会将USB硬件连接到您的Android设备。 This will prevent you from having an adb connection to the Android-powered device via USB. 这将防止您通过USB与Android供电的设备建立adb连接。 You can still access adb over a network connection. 您仍然可以通过网络连接访问adb。

答案是:无法做到,需要wifi或连接到PC

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM