Learn how to use the improved python debug build with the gnu project debugger (gdb). Learn how to effectively debug python c extensions using gdb 16.3's new unwinding capabilities You misunderstand what the python command inside gdb means If you want to debug python, you need tell gdb that it should debug the python executable, and then run it, not use the python command of gdb itself. Cpython includes one such extension in its source tree that is useful for debugging python itself and python/c extensions, in tools/gdb/libpython.py. At this point, gdb will immediately stop the process
Just click to continue button (the second button on top) or press f6 Import your module on python prompt and unfocus from terminal, now just press ctrl + p shortcut and type a source name from your python extension
OPEN