Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i use a breakpoint in Eclipse in runtime android code?

I did double click on the left gray area near a line. But when im running the program it dosent stop there its just keeping running. What is the reason that it dosent stop ? I tried to install JDT maybe its not installed so i run through the Eclipse help menu for updates but it didnt find any updates.

So i cant figure out whats wrong.

like image 399
user1434011 Avatar asked Jun 04 '12 04:06

user1434011


2 Answers

Do the following steps to debug your code :

To enable debugging in complete application, after putting breakpoints just run your application in debug mode as shown in this screenshot : enter image description here

To start debugging from a point, just navigate in your application at that point in emulator/device and then do the following : 1. Go to Windows --> Show View --> Other...

enter image description here

a window will open..Select "Android" folder then select "Devices" and click OK.

enter image description here

then open devices view you can identify it by phone icone, the select your device from the list and then select your package from the packages list then click green bulb on top. the green bulb the will appear at left side of your package. Now your breakpoints should work.

enter image description here

like image 127
Vipul Purohit Avatar answered Sep 28 '22 06:09

Vipul Purohit


In which mode did you run your program? You need to run your program in Debug mode, only then will it stop at the breakpoints. Right click on your application file and select the option "Debug As" -> "Android Application".

like image 28
Arun George Avatar answered Sep 28 '22 07:09

Arun George