Ask Your Question
0

Debugging native openCV code for Android on Eclipse

asked 2013-01-27 16:27:37 -0600

mnut gravatar image

Is there an easy way to debug native openCV code for Android on Eclipse?

I would like to put breakpoints in the native OpenCV code and step through the code. By default, in Eclipse, breakpoints placed in jni cpp files do not pause the program. Only breakpoints in the java files seem to work. Is there a setting that needs to be changed or a toolbox that needs to be downloaded? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-01-28 00:23:19 -0600

Haris gravatar image

You need to use GDB for debugging naive code in Eclipse, where GDB itself has remote debugging features. You can refer these link1, link2 and link3 for Eclipse setup using GDB Otherwise you can do this simply by command line using ndk-build and ndk-gdb. See this question for more information.

Hope these helpful...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-01-27 16:27:37 -0600

Seen: 1,065 times

Last updated: Jan 28 '13