ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Dont see source code in Eclipse Debug

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

tuuzdu gravatar image

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

ngrennan gravatar image

I configurate Eclipse Kepler like in this tutorial:

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

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

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


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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 294 times

Last updated: Jun 17 '14