How to debug android program
- Go to Run -> debug configuration. Select your application and press debug.
- [or] you can right click on your project -> debug as -> Android application.
- Before running in debug mode, set break points where all it may be needed for your code. To set break points, go to the line where you need to set the break point, double click on that line -> it will show you blue ball. Once you see that blue ball on that line, it means break point has been set for you.
- Once you start debugging, the emulator may show a window showing “waiting for debug to progress” and it may opt you to force close.
- Don’t click on force close button. As it will lead to end of your application. Wait for that window get closed automatically by itself
- Then your eclipse will get control and will ask you to switch the perspective view of your eclipse editor, so press yes to start debugging.
- Once you press yes, it will open debugging mode screen of eclipse.
- If you want to run step by step use F6 button
- If you want to skip to next debugging point press F8 button.


Latest Comments