Android debugging : What is a break point and how to watch variables while debugging android program?
break point breaks the execution. Put cursor on variables to see the value
break points are hit when crash happens. Put cursor on variables to see the values
break point breaks the execution. To see value either you can put cursor on it or right click on variables and add to watch
break point are hit when crash happens. To see value either you can put cursor on it or right click on variables and add to watch
Debugging : means removing the bug (issue).
There can be two types of bugs.
1. Program crash : When program crashes due to some exception, then we have to debug the program through logcat and find the problem. These kind of debugging will be done through logcat messages.
2. Function is not working properly : If some logic is not working properly, then we have to analyze that function to see what logic is going wrong. This can be done in many ways.
a. Put toast messages in the function to see line by line analysis
b. Put log messages by using Log.d OR other log functions, and see for
those messages in logcat.
c. Put break point by double clicking a particular line in eclipse.
Break point is a point where control will stop at that line while
executing. Once it hits that point, it will break/ halt the execution.
There you can explore all the variable values by adding variables to
Back To Top