ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

how should I debug using gdb? where to see the results?

asked 2018-09-16 11:26:34 -0500

b.slmn gravatar image

updated 2018-09-16 11:28:31 -0500

It might be very trivial but I have problem with gdb debugging. I don't know how should I see xterm window when I launch the nodes using gdb.

edit retag flag offensive close merge delete



There's not enough detail here for us to help. Please edit your question to add the commands that you're running, and the output that you do see. If you're using a launch file please include that launch file too.

ahendrix gravatar image ahendrix  ( 2018-09-16 12:34:27 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-17 01:22:41 -0500

gvdhoorn gravatar image

In case you haven't, take a look at How to Roslaunch Nodes in Valgrind or GDB.

Especially the run your node in gdb in a new [..] window variants of the prefixes, such as:

  • 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

I don't know how should I see xterm window when I launch the nodes using gdb.

If you already tried the two launch-prefixes I list above, but still can't find the window, make sure it is not being spawned behind the terminal you use to roslaunch everything in. That has happened to me some times and it can make for a confusing 5 minutes.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-09-16 11:26:34 -0500

Seen: 3,066 times

Last updated: Sep 17 '18