To debug Android JNI / NDK in Eclipse, why are my breakpoints ignored?

I am using Eclipse 3.6.2 with the last and largest ADT (v20), and I am trying to set a breakpoint in a method that I know it runs (writes messages to LogCat), but for some reason all breakpoints, which I post is 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 does not apply in my case.

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

+7
source share
1 answer
  • Make sure Skip All Breakpoints is not enabled (icon to the left of the debug icon)
  • Make sure you select the file from the project you want to debug
  • Check that the program does not die in the previous step, or if you are trying to catch, check that the error does not cause your program to "jump" the breakpoint to "catch" because of the error. The same thing happens with if else
  • Make sure you run the program as an β€œAndroid app”
  • Shortkey for debugging - F11 or click the error icon

Hope this helps!

+1
source

All Articles