(Android Studio) How to debug through my code only?

Go to Android Studio > Preferences > Debugger > Stepping then in the bottom click the plus arrow with the question mark that says Add Pattern. Type android.* and hit OK and then Apply.

In Android Studio 2.0 select File > Settings > Build, Execution, Deployment > Debugger > Stepping. Then click the “Add Pattern” cO5NZ button on the right. Type android.* (or whatever pattern you want to exclude) and click “OK” twice.

For the latest version of android studios

  1. Go to File->Setting and search for Stepping
  2. click on +? sign on the right side
  3. add the following 4 patterns one by one

    com.android.*

    android.*

    com.androidx.*

    androidx.*

Leave a Comment