Ask Your Question
2

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
0

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

Comments

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 imageMosa ( 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

Stats

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

Seen: 469 times

Last updated: Jan 20 '16