There are types of bugs that are difficult to debug from within Python: segfaults (not uncaught Python exceptions) hung processes (in cases where you can't get a Python traceback or debug with pdb) out of control daemon processes In these cases, you can try gdb. Prerequisites You need to have gdb on your system and Python debugging extensions. Extensions package includes debugging symbols and adds