What Is Android Debugger Attach?
Contents Android Studio Attaches Both the Java Debugger and Lldb to Your App Process, One for the Java Debugger and One for Lldb, So You Can Inspect...
Android Studio attaches both the Java debugger and LLDB to your app process, one for the Java debugger and one for LLDB, so you can inspect breakpoints in both your Java and native code without restarting your app or changing your debug configuration.
How does a debugger attach to a process?
The user tells the debugger which process to attach to, either by name or by process ID. If it is a name then the debugger will look up the process ID, and initiate the debug session via a system call; under Windows this would be DebugActiveProcess.
Must Read
Is waiting for debugger to attach android?
Settings -> Developer options -> Select app to be debugged -> Select the application! I had same issue. Adding permission didn’t help me, because Eclipse automatically enables debugging when it runs in debug mode. Check your device setting whether “Wait for debugger” is unchecked under “Developer Options”.