There's also a wiki page about using valgrind and gdb with roslaunch: http://www.ros.org/wiki/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB -Dan On Wed, Aug 18, 2010 at 1:48 PM, David Lu!! wrote: > Have you tried using the Joy package? http://www.ros.org/wiki/joy It > works automatically with a lot of different joysticks. > > Also, you can debug the code using gdb (from the Terminal) like any > other C/C++ program. > > -David > > On Wed, Aug 18, 2010 at 9:02 AM, chris_li wrote: > > > > Hi there, > > > > I am new to ROS and I am trying to create a package to control a > joystick. > > I have gone through the tutorial in http://www.ros.org/wiki. I realize > I > > have to mimic some of the example C code. I am writing the code in gedit. > Is > > it the right way to do it? If it is the right the way, I do not know how > to > > debug the C code in gedit? Could anyone advise please~ > > > > Sincerely, > > Chris > > -- > > View this message in context: > http://ros-users.122217.n3.nabble.com/How-to-debug-the-source-code-in-C-tp1208900p1208900.html > > Sent from the ROS-Users mailing list archive at Nabble.com. > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > http://p.sf.net/sfu/RIM-dev2dev > > _______________________________________________ > > ros-users mailing list > > ros-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/ros-users > > _______________________________________________ > > ros-users mailing list > > ros-users@code.ros.org > > https://code.ros.org/mailman/listinfo/ros-users > > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users >