Grufty
Grufty

Reputation: 47

Debugging Android App in Eclipse Doesn't Work

I am new to Android development and also the Eclipse environment; I am used to using VS developing in C# so hopefully my issue will just be a configuration problem.

I am trying to use the debugger to step through my software. I know how to add breakpoints and the software has to be ran in debug mode. From here I should be able to use F5 & F6 to step in/over my breakpoint.

My issue is that these "Stepping" features don't seem to work. My code stops at the breakpoint, but when I attempt to step past it nothing happens. The highlighted line un-highlights, but then straight away is highlighted again; therefore I seem to never be able to step through my code.

I hope this issue makes sense and I appreciate any help that can be offered.

Upvotes: 4

Views: 207

Answers (1)

Christian Strempfer
Christian Strempfer

Reputation: 7383

There are several situations when this might occur:

  • The line is executed again, before the first occurrence is finished. This should only happen if you use recursion or that code is executed in parallel.
  • You're stepping in and continue so far that it returns to outer method. This might happen when the line contains nested method calls: getMyObject(getIdentifier(searchId("foobar")).
  • The source code isn't matching the executed application. For example when using a decompiler or when the wrong source code version is attached.

For a precise answer, you should post the code and the steps you're taking.


If possible you should switch to Android Studio which is based on IntelliJ, because the Android Eclipse plugin was abandoned by Google.

Upvotes: 1

Related Questions