Difficulties with step-by-step debugging in android.

I want to do step-by-step debugging in android. I work in Eclipse. Whenever I launch an Android app and hit a breakpoint, a problem occurs. Here is the problem:

I go into debug mode and I see that my breakpoint has been deleted, but now that I want to execute the execution, it does not work. As soon as I press f5 or press the step over / step key, a new window will open that says the following:

CLASS FILE EDITOR

SOURCE NOT FOUND

What should I do? I attached a file that is debugging the source code, but it still does not work? What does this error mean?

+6
android
source share
4 answers

Try setting breakpoints. If you β€œstop” your application, you cannot say in which part of the source you are actually. (Your application issues android libraries, and therefore, you probably execute some libs lines when you press the step / key button. If you set breakpoints, the application stops inside YOUR code, not inside libs.

0
source share

In fact, you can load the Android source and continue debugging in the Android source files. Sometimes it’s really useful to know what happens behind the lid.

Also, try pressing F6 (if you are using Eclipse), as it will not enter deeper into the functions, but will continue the line to line. Or set up a bunch of breakpoints and hit resume with F8, if that's more convenient for you.

0
source share

Have you tried using DDMS? I have found a problem with my code many times.

Using f6 (step forward) as the above article recommends also works. What exactly are you trying to debug?

0
source share

Perhaps the debugger points to the library code (have you added a link to an external library?).

0
source share

All Articles