Articles → Android → Debugger In Android
Debugger In Android
What Is Debugging?
Breakpoint
How To Add Break-Point In Android Studio?
Click to Enlarge
Build Variant
How To Start Debugging In Android Studio?
- Debug ‘app’ icon
Click to Enlarge
- By pressing SHIFT + F9.
- Go to Run and click on Debug ‘app’ option.
Click to Enlarge
Debug Window
Click to Enlarge
How To View All Break-Points In Android Studio
Click to Enlarge
Step Over (F8) And Step Into (F7)
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
PrintCommand();
}
public void PrintCommand() {
Toast.makeText(this, "Print Activity", Toast.LENGTH_SHORT).show();
}