ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Dont see source code in Eclipse Debug

asked 2013-12-08 07:46:07 -0500

tuuzdu gravatar image

updated 2014-01-28 17:18:45 -0500

ngrennan gravatar image

I configurate Eclipse Kepler like in this tutorial: http://wiki.ros.org/IDEs#Running_and_debugging_your_executables_within_Eclipse

When I try debug code, I see only disassembled code. Can I see c++ source code of my project?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-06-17 04:38:58 -0500

fivef gravatar image

You need to compile your package with debug symbols.

catkin_make --pkg <package_name> --cmake-args -DCMAKE_BUILD_TYPE=Debug

Or for all packages:

catkin_make --cmake-args -DCMAKE_BUILD_TYPE=Debug
edit flag offensive delete link more

Comments

Thanks a lot! I had the same problem with Eclipse 2018-09 (4.9.0) and ROS Kinetic under Ubuntu 16.04. I did, what the wiki page demanded (using the catkin-y approach) which helped to run and build the package from within eclipse, but debugging wasn't working. Got "No source available for main()" as error. Your suggestion solved my problem.

Zacryon gravatar image Zacryon  ( 2019-03-21 10:57:11 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-12-08 07:46:07 -0500

Seen: 327 times

Last updated: Jun 17 '14