Reputation: 29
How can I debug an Android app to find out which line is not correct?
Noted that I'm using Android Studio. Also I've done every things exactly the same as what my master did. It works for him as well but it doesn't for me. I mean it closes the app and throws "has stopped"
error. Ok well, what's wrong?
Upvotes: 2
Views: 137
Reputation: 479
You can put breakpoints via Run -> View Breakpoints.
The Breakpoints dialog appears. In the left pane, scroll to the bottom. Select Any exception under Java Exception Breakpoints With Any exception selected, on the right pane, configure as follows:
Suspend: checked
All: selected
Condition: !(this instanceof java.lang.ClassNotFoundException)
Notifications: both Caught exception and Uncaught exception selected
You can refer this for better understanding.
Upvotes: 1