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

How to use launchfiles in Eclipse for debugging

asked 2011-03-10 01:47:54 -0500

tom gravatar image

updated 2014-01-28 17:09:19 -0500

ngrennan gravatar image

I'd like to debug a particular node (openni_node) in Eclipse. To use that node normally one would call a launchfile like this: roslaunch openni_camera openni_node.launch, but this doesn't work on my computer at the moment (link).

Running roscore in terminal seems not to suffice to be able to then debug openni_node with Eclipse. Is there a way to use the same, aforementioned, launchfile in Eclipse in debug mode?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2011-03-10 22:16:24 -0500

You could launch the node in debug mode by adding the following line to the <node> tag in the launch file: launch-prefix="xterm -e gdb --args" (see this tutorial). If you are not comfortable with a console based gdb you can use a front end interface like ddd.

You could configure Eclipse to use remote debugging, even if I think it's a long shot. You can find more instructions here.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-10 01:47:54 -0500

Seen: 1,972 times

Last updated: Mar 10 '11