Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] A solution for debugging JNI apps using both C/C++ and Java

>From recent messages on this group I see there are others who have had
difficulties getting Eclipse to work with gdb to debug C/C++ code. I
recently had a similar experience while attempting to use Eclipse to debug a
JNI application that involved both native C/C++ code and Java. 

The Java debugger in Eclipse works very well but I had to resort to using
Insight in order to debug the native C/C++ shared library end of the JNI
code.

I wrote up a description of how to do it for one of our customers and I've
posted it to the following link, in case it might help somebody else:

http://www.kineteksystems.com/white-papers/mixedjavaandc.html

I'm not trying to sell this approach as an ideal debugging solution but
maybe it will help others to deal with the dual-debugger problem (until the
CDT developer team comes up with a more ideal solution).

Hope it helps,

Nick Jancewicz
Kinetek Systems
www.kineteksystems.com




Back to the top