Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For Android JNI/NDK debugging under Eclipse, why are my breakpoints are being ignored?

I am using Eclipse 3.6.2 with the latest & greatest ADT (v20) and I trying to set a breakpoint in a method that I know it runs (logs messages to LogCat), but for some reason all breakpoints I place are simply ignored.

In my search for a solution, I came across this thread, but it is very old and my JDK is much newer anyway, so the answer doesn't apply in my case.

Why is this happening and how can I solve this problem?

like image 364
Souper Avatar asked Oct 27 '12 23:10

Souper


1 Answers

  • Check that "Skip all breakpoints" is not enabled (little icon at the left of the debug icon)
  • Check you've selected a file from the project you want to debug
  • Check the program does not die on a previous step or if you are on a try catch, check an error does not make your program "jump" the breakpoint to the "catch" due to an error. Same happens with if else
  • Check you're running the program as an "android application"
  • Shortkey to debug is F11 or click the bug icon

Hope this helps!

like image 187
Dante Avatar answered Oct 06 '22 20:10

Dante