Tag: debugging

  • Using adb over Wireless / Wifi

    Physical cables are rapidly becoming obsolete, and they’re annoying to use for Android development and debugging. Luckily, adb can easily be configured to work wirelessly and you can free yourself from micro-USB cables (almost) entirely. To do this, plug a phone into a computer as you would to normally debug over adb. (This is the…

  • Android USB Debugging on Ubuntu Linux 11.10

    I recently set up a new development machine with Ubuntu Linux 11.10, but ran into this problem trying to list connected Android devices with the adb command: [code] ./adb devices List of devices attached ???????????? no permissions [/code] To fix this, just run these commands from your SDK/platform-tools folder to restart the ADB server with…

  • Debugging an Android Thread / Service

    Trying to debug an Android application recently, Eclipse wasn’t stopping on my breakpoints following an asynchronous / threaded API call. This single line of code solved my problem: [java] android.os.Debug.waitForDebugger(); [/java] This will cause the Android Debugger to attach even after launching the application normally. Hope this helps!