Karl Richter added the comment: My initial description was imprecise. Clearification: The fact that in
#!/usr/bin/python import threading def debugging(): def __a_thread__(): print("2") a_thread = threading.Thread(target=__a_thread__) print("1") if __name__ == "__main__": debugging() when invoked with `python -m pdb` the breakpoint at line 7 is ignored, like in $ python -m pdb multithreaded_debugging.py > /mnt/DATA/richter/examples/python/multithreaded_debugging/multithreaded_debugging.py(3)<module>() -> import threading (Pdb) break 7 Breakpoint 1 at /mnt/DATA/richter/examples/python/multithreaded_debugging/multithreaded_debugging.py:7 (Pdb) c 1 The program finished and will be restarted > /mnt/DATA/richter/examples/python/multithreaded_debugging/multithreaded_debugging.py(3)<module>() -> import threading (Pdb) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23163> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com