Debugging python extension in gdb$ gdb -ex r --args python myscript.py If you are using virtual environment then you are likely to run into the following error. …