ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If it is a Python script I guess gdb is not what you wan to be using. Instead, Python has pdb (https://docs.python.org/2/library/pdb.html).

You could try

rosrun --prefix 'python -m pdb' object_recognition_capture upload -i final.bag -n 'example' example --commit

but this is just a guess. I have never started Python scripts this way with rosrun.

If it is a Python script I guess gdb is not what you wan to be using. Instead, Python has pdb (https://docs.python.org/2/library/pdb.html).

You could try

rosrun --prefix 'python -m pdb' object_recognition_capture upload -i final.bag -n 'example' example --commit

but this is just a guess. I have never started Python scripts this way with rosrun.

Edit: I guess for C++ code called from python scripts you could try to run the python executable with DGB, like described here: https://wiki.python.org/moin/DebuggingWithGdb

So best install the debugging symbols for your python interpreter and then try something like this:

rosrun --prefix 'gdb -ex run --args python' object_recognition_capture upload -i final.bag -n 'example' example --commit

Again, I haven't tried this, so its just a guess.