Skip to content Skip to sidebar Skip to footer

Cannot Start Dbg On My Python C Extension

Im using python3.6.1 installed in pyenv. I have problem with running gdb on my code. When I run gdb --args python mycode.py it ends with error '/home/vydra/.pyenv/shims/python': no

Solution 1:

As suggested by Jean-François Fabre, the python file installed by pyenv is actually a bash script. You can easily make gdb run this script with:

gdb -ex r --args bash python mycode.py

See this question for other approaches: Use GDB to debug a C++ program called from a shell script

Post a Comment for "Cannot Start Dbg On My Python C Extension"