[issue23163] pdb docs need to contain a statement on threads/multithreaded debugging

Karl Richter report at bugs.python.org
Sun Jan 11 19:04:47 CET 2015


Karl Richter added the comment:

Sorry, I mean 

    #!/usr/bin/python

    import threading

    def debugging():
        def __a_thread__():
            print("2")
        a_thread = threading.Thread(target=__a_thread__)
        a_thread.start()
        a_thread.join()
        print("1")

    if __name__ == "__main__":
        debugging()

It's very uncommon to set the current debugging thread in the source.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23163>
_______________________________________


More information about the Python-bugs-list mailing list