How can I use breakpoint in Eclipse while running Android code?

I double-clicked on the left gray area next to the line. But when I start the program, the assistant professor stops there, just continuing to work. What is the reason for the cessation of dosage? I tried installing JDT, it may not have been installed, so I run the Eclipse help menu for updates, but it did not find any updates.

So, I can’t understand what happened.

+5
source share
2 answers

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

+7
source

Follow these steps to debug your code:

To enable debugging in the full application, after setting breakpoints, just run the application in debug mode, as shown in this screenshot: enter image description here

To start debugging from a point, simply go to the application at that point on the emulator / device, and then do the following: 1. Go to Windows → View View → Other ...

enter image description here

. " Android", "" "".

enter image description here

, icone, , . . .

enter image description here

+13

All Articles