Hi, I generally use gdb to debug my run time errors in my C++ programs. But in ros as it spins n waits for the msgs in topics, the gdb doesn't really work well. So I want to know if there is another method to debug the ros codes when they run into segmentation faults.
You can launch nodes directly in gdb, here is some more info:
answered 2012-03-14 07:40:39 -0500dornhege
For debugging ROS nodes I use the same way as for any other C++ program: gdb/ddd/kdbg.
The spinning shouldn't be a problem, just start of with the message handler in the backtrace. This is under the assumption that you want to debug your ROS code and not the ROS core functionality, which I would consider mostly bug-free.
Asked: 2012-03-14 06:32:27 -0500
Seen: 674 times
Last updated: Mar 14 '12