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

Breakpoints for python debugging with roslaunch?

asked 2015-11-26 14:31:45 -0500

Oevli gravatar image


Coming from a matlab background, Im very found of using breakpoints for debugging...

I know this can be done for python, but it doesn't seem to work when launching my node with roslaunch. If I use rosrun (or roslaunch with screen output) my node is flooded with sensor data, which overwrites anything I would write as part of my breakpoint debugging. Does anyone have any suggestions?

edit retag flag offensive close merge delete


Hi. I have the same question. Did you find the solution about how to debug rospy code? I will appreciate your reply.

chenhengwei1999 gravatar image chenhengwei1999  ( 2023-06-29 03:03:43 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-26 15:39:11 -0500

tfoote gravatar image

You should be able to use a launch-prefix to get your python process into pdb

edit flag offensive delete link more


Hi, I read your link which is helpful to debug ros's code. But the documentation you supplied is about roscpp, is there any debugging tools that is for rospy?

chenhengwei1999 gravatar image chenhengwei1999  ( 2023-06-29 02:57:51 -0500 )edit

Question Tools

1 follower


Asked: 2015-11-26 14:31:45 -0500

Seen: 1,836 times

Last updated: Nov 26 '15