[Python-Dev] What's the best way to debug python3 source code? (for this bug: http://bugs.python.org/issue15068)

"Martin v. Löwis" martin at v.loewis.de
Mon Jun 18 23:03:16 CEST 2012


> But i can't get any clue which file to look at.

I personally wouldn't use gdb but strace to establish what system calls
are being made, and decide whether these system calls are correct or
not. If you then think that some call is being made that shouldn't,
set a breakpoint on the syscall function, and see when it gets hit.

I'd also attach to a running Python interpreter instead of running
python from gdb, since the interaction between gdb's stdin
and python's stdin may be confusing.

Regards,
Martin



More information about the Python-Dev mailing list