In this tutorial is shown how to launch nodes in gdb (and other tools). There are two options for gdb.
- launch-prefix="xterm -e gdb --args" : run your node in a gdb in a separate xterm window, manually type run to start it
- launch-prefix="gdb -ex run --args" : run your node in gdb in the same xterm as your launch without having to type run to start it
Is it possible to run my node in gdb in the same xterm as my launch with having to manually type run to start it? My attempts to do that were unsuccessful.
Originally posted by Matthew.J on ROS Answers with karma: 32 on 2015-01-28
Post score: 0
Original comments
Comment by gvdhoorn on 2015-01-29:
Isn't the second option you list what you ask?
Comment by Matthew.J on 2015-01-29:
Nope :-( it automatically runs the node. I want to set breakpoint and som awatches first. And when I remove the run command gdb doesn't launch correctly.