Ask Your Question

Pass arguments to rqt plugin in gdb

asked 2016-01-18 12:57:35 -0500

Mosa gravatar image

How I can pass arguments to a rqt plugin within gdb

% gdb python
(gdb) run $YOUR_RQT_GUI_HOMEDIR$/bin/rqt_gui
 :          (usual gdb usage)

With the code above I can start the rqt_plugin, but without arguments

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-20 03:34:05 -0500

mgruhler gravatar image

This is offtopic.

But anyways: you can pass commandline arguments (this is what your question is about, right?) to an executable in gdb using the --args option. I.e. gdb --args executablename arg1 arg2 arg3.

edit flag offensive delete link more


No, this is not possible. For debugging a rqt_plugin I have to start "gdb python" than I am in GDB modus. For starting the rqt_plugin I have to run the plugin like this: run $YOUR_RQT_GUI_HOMEDIR$/bin/rqt_gui I can't start in this mode gdb --args exeName arg1 arg2 arg3

Mosa gravatar image Mosa  ( 2016-01-20 07:36:13 -0500 )edit

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: 2016-01-18 12:57:35 -0500

Seen: 600 times

Last updated: Jan 20 '16