
Native code debugging is done via ptrace(2).The JDWP server runs inside the process hosting the DVM. Dalvik VM debugging is done over the Java Debug Wire Protocol (JDWP) protocol.Nothing prevents you from debugging on the device itself though. Higher-level Dalvik virtual machines, running inside processesĭebugging is generally performed remotely, on a separate computer.There are two types of debuggable entities on Android OS: If the device is shown as unauthorized, a pop-up on your phone will appear to request authorization. (Debugging is enabled by default on the emulators.) On physical devices running Android 4.2 and above, one way to make sure that USB debugging is enabled is to run the adb devices command. Enable Developer options and allow USB debugging on the intended physical target device.(The ANDROID_HOME variable is also checked, although it was deprecated.)

You also want to have the ANDROID_SDK_ROOT environment variable pointing to the SDK folder.

