Reputation: 6223
I'm developing a wrapper for a C/C++ library in Java, and it's gotten to the point where it is mostly working, but there are occasional segfaults and other errors popping up. I'm using Eclipse for development, and it looks like they are working towards mixed debugging, but it is not finished yet.
Can anyone suggest good techniques, best practises for this kind of debugging, beyond debugging the C++ and Java separately or adding lots of print statements?
EDIT just in case it is relevant - I'm not developing for Android, so any Android specific tools will not help
Upvotes: 0
Views: 323
Reputation: 153977
I've not found anything but using print statements for the Java side, but it's quite possible to attach gdb to the Java process, or start the JVM under gdb, and set break points, examine variables, etc. with it.
Upvotes: 1