First time here? Check out the FAQ!

Ask Your Question
0

Debugging native openCV code for Android on Eclipse

asked Jan 27 '13

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Jan 28 '13

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...

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Jan 27 '13

Seen: 1,101 times

Last updated: Jan 28 '13