Articles → Android → Debugger In Android

Debugger In Android






What Is Debugging?





Breakpoint





How To Add Break-Point In Android Studio?




Picture showing the break point in the android studio
Click to Enlarge




Build Variant





How To Start Debugging In Android Studio?




  1. Debug ‘app’ icon
  2. Picture showing the debug app button in the android studio
    Click to Enlarge

  3. By pressing SHIFT + F9.
  4. Go to Run and click on Debug ‘app’ option.
  5. Picture showing the debug app menu option in the android studio
    Click to Enlarge



Debug Window




Picture showing the debugger window in the android studio when the break point hits
Click to Enlarge




How To View All Break-Points In Android Studio






Picture showing the list of 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();
}









Posted By  -  Karan Gupta
 
Posted On  -  Friday, December 6, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250