homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author krichter
Recipients georg.brandl, krichter, xdegaye
Date 2015年01月11日.18:01:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420999293.91.0.359624506231.issue23163@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2015年01月11日 18:01:34krichtersetrecipients: + krichter, georg.brandl, xdegaye
2015年01月11日 18:01:33krichtersetmessageid: <1420999293.91.0.359624506231.issue23163@psf.upfronthosting.co.za>
2015年01月11日 18:01:33krichterlinkissue23163 messages
2015年01月11日 18:01:33krichtercreate

AltStyle によって変換されたページ (->オリジナル) /