Skip to content

debug_python_bindings

Naveau edited this page Jan 20, 2021 · 1 revision

Debugging Python bindings error.

Once you nailed down that the Python code that you use is in fact a C++ binded code, the only thing that can help you is GDB.

Here is how to launch gdb on python while run your code:

gdb -ex r --args python <program_name>.py <arguments>
Clone this wiki locally