If your target device is running Android 7.0 (API level 24) or higher, you can use this experimental feature with the Auto and Native debug types, and inspect Java and C/C++ code with a single LLDB process, as shown in figure 1. Using a single LLDB process to debug your code has the benefit of sharing state information between Java and native breakpoints, and it may appeal to developers who are already familiar with LLDB and want to use it to debug Java code. However, there is additional overhead associated with processing the relevant Java code, so this option is not appropriate for projects with a significant amount of Java. To enable this feature, you need to edit your Edit Your Run/Debug Configuration as follows:
The Auto debug mode only uses this feature if your project uses native code. If you enable this feature with the Native debug type, however, Android Studio uses LLDB to debug all your breakpoints, even if you only have Java code in your project. |
Technical docs >