简体   繁体   中英

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. I have no wifi capability yet. 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. The program kept executing.

You can connect to adb over a network connection. See:

How to debug Android application in phone sleep mode without USB connection

Android has an option for debugging via a network connection so that you can use your usb port for other hardware.

When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adb connection to the Android-powered device via USB. You can still access adb over a network connection.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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