Using CLion to debug launched nodes

asked 2022-10-17 12:38:22 -0600

carlostojal gravatar image

Hi. I'm trying to use CLion to debug ROS 1 (noetic) nodes started from launch files, more specifically RTAB-Map. I'm following CLion's official documentation from here, doing the following:

  • Opening the project from the workspace "CMakeLists.txt" file.
  • Making sure CLion is set to debug configuration.
  • Adding the breakpoints.
  • Doing the build from CLion.
  • Launching the nodes from the shell.
  • Attaching the debugger from CLion.

However, I always get the message "Code not reachable" on the breakpoints while I am certain that the code is indeed being reached and the breakpoints are not being hit. Any ideas on more things to check, or what might be wrong?

Sorry for no images, but I don't have enough karma to upload files and explained the best I could :( Thanks for any help.

edit retag flag offensive close merge delete