Android Studio includes a debugger that enables you to debug apps running on the Android Emulator or a connected Android device. With the Android Studio debugger, you can do the following:
- Select a device to debug your app on.
- Set breakpoints in your Java and C/C++ code.
- Examine variables and evaluate expressions at runtime.
- Capture screenshots and videos of your app.
Please briefly read Debugging Android
2
solved What is Debugging in android [duplicate]