ComposableNode gdb debugging

asked 2021-02-19 03:51:32 -0500

ralwing gravatar image

Hi, I've spend a day or so, looking for a way to debug composable node.

When a node is created with rclcpp_components_register_nodesthere's no exe file generated, as documentation states: https://docs.ros2.org/foxy/api/rclcpp...

So ros2 run can't start this node. Only ros2 component standalone works here. But this command doesn't support --prefix argument. running gdb python ros2 component standalone localization names::LocalizationNode doesn't work for me either.

Do You have any suggestions?

edit retag flag offensive close merge delete

Comments

did you manage to get a gdbserver started for a composable node yet?

jd2548 gravatar image jd2548  ( 2022-09-28 17:02:30 -0500 )edit

Nope. I worked it around: building an exe, and than debugging executable file.

ralwing gravatar image ralwing  ( 2022-09-30 07:19:00 -0500 )edit