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

Breakpoints for python debugging with roslaunch?

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

Oevli gravatar image

Hi

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

Comments

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
0

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

http://wiki.ros.org/roslaunch/Tutoria...

edit flag offensive delete link more

Comments

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

Stats

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

Seen: 1,929 times

Last updated: Nov 26 '15