I can't attach Android Studio's debugger to my debuggable application process. Anyone else had this issue? Basically I can't get my app listed in Choose Process dialog.
I'm selecting Attach debugger to Android process:

And then, here's how Process selection dialog from Android Studio looks like:

Any ideas why my app is not shown in the Choose Process list?
Although, DDMS sees my app in Devices | logcat list:

Android Monitor also sees the app in Devices list:

I've tried these actions:
MacBook Samsung Galaxy Note II N7100 (4.3) and Samsung Galaxy S4 (4.4.2)Settings->Developer Options on the devicesSettings->Developer Options->USB debugging on the devicesadb by running adb kill-server and adb start-server restarting in TCP mode port: 5555 by running adb tcpip 5555 and then connecting to it with adb connect 192.168.1.87 Waiting more&Restart when got this error saying ADB not responding. You can wait more, or kill "adb" process manually and click 'Restart' Errors in ADB: ddms: '$ANDROID_HOME/platform-tools/adb,start-server' failed -- run manually if necessary Error screenshot Update:
What I've noticed is that device appears multiple times in the Android DDMS->Devices | logcat list. If I choose 1st device from the list, it shows, there's No debuggable applications, but I select last device (4th in the screenshot) I see my debuggable application. See screenshots: 1st and 4th. Although, even there's only 1 device in the list and showing debuggable device and application, process still does not appear in the Choose Process dialog.
Attach the debugger to a running app If your app is already running on your device, you can start debugging without restarting your app as follows: Click Attach debugger to Android process . In the Choose Process dialog, select the process you want to attach the debugger to.
However, you need to make sure you're using an APK with debugging enabled. To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen. Or, if you already have a project open, click File > Profile or Debug APK from the menu bar.
So finally I got it working, by:
Checking 'Show all processes' checkbox! BUT as you see in the question, checkbox was on at the beginning, so there were multiple issues.
To summarize, these are other actions to be done:
adb processes (use ps -x | grep adb and kill -9 [process id])adb start-server in terminaladb devices (to make sure device is connected successfully)Android DDMS Devices | logcat shows your app and only one device is listed.Show all processes checkbox. See screenshot If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With