Debugging ROS nodes started from launch file with Eclipse
Requirements
- Imported ROS project into Eclipse workspace (see http://wiki.ros.org/IDEs for details)
- Installed gdbserver (apt-get install gdbserver)
Follow the steps below.
1) Adjust the launch file:
Add this to the node tag if you want a new terminal window for the process
::CODECOLORER_BLOCK_3::or add the following if you want to stay in the current started terminal.
::CODECOLORER_BLOCK_4::2) Eclipse Debug Configuration
Add a new Eclipse debug run configuration for C/C++ Remote Application. Adjust the path to your C/C++ application binary, leave everything else default