ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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
.
2 | No.2 Revision |
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.