Message233860
| 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:34 | krichter | set | recipients:
+ krichter, georg.brandl, xdegaye |
| 2015年01月11日 18:01:33 | krichter | set | messageid: <1420999293.91.0.359624506231.issue23163@psf.upfronthosting.co.za> |
| 2015年01月11日 18:01:33 | krichter | link | issue23163 messages |
| 2015年01月11日 18:01:33 | krichter | create |
|