|How to debug C++ code called from a JAVA Simulation Program [message #722569]
||Tue, 06 September 2011 08:23
Registered: August 2011
I need help learning how to debug a c++ program that is called within a java program that is a robot simulation. This is a program called OpenHRP (openrtp.jp/openhrp3/en/index.html)
The program simulation, I believe was written in JAVA, the controller in C++. I am also using Ubuntu Linux 10.04 and Eclipse-Ganymede.
What I have attempted so far is to load two projects the java simulation program and the C++ program.
I have the intuition that I could launch the debugger for the java simulation program and then that program would call the C++ code and I could debug using breakpoints.
I ran a debug configuration using the eclipse application->program to run.
With this debug configuration I could debug the java code, but it never went into the C++ code.
After some reading I understood that I should also use the debug configuration 'C/C++ Attach to Local Application'. I was not sure how to use this one though I tried in a variety of ways with no success.
I am not an experienced user, so if anyone knows the answer, I would greatly appreciate a step-by-step explanation of how to set all of this up.
Powered by FUDForum
. Page generated in 0.01772 seconds