You can use c debuggers to debug c extensions in python 3.9 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 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 Just click to continue button (the second button on top) or press f6 You misunderstand what the python command inside gdb means
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