Debugging a ros package

asked 2018-10-16 07:59:58 -0500

RMZ gravatar image

I am trying to use and old ros package but it keeps failing. I would like to debug the code to see where the problem is.

I see i need to run:

catkin_make -DCMAKE_BUILD_TYPE=Debug

As the package comes in binaries i am installing it directly with:

sudo apt-get install ros-kinetic-xxx

How can I install the package to be able to debug it?

edit retag flag offensive close merge delete



What is the package you want to debug? You'll need to download the source of that package into a work space and built it from source to be able to debug it as far as I know. There will be a git repository on the wiki page which you can use to get the source.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-10-16 08:57:22 -0500 )edit

As mentioned you need source code to do that. Here I have explained how to set it up with VSCode. You can use gdb or anything you want.

Choco93 gravatar image Choco93  ( 2018-10-17 04:06:53 -0500 )edit