Message233860
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) |
|
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 | |
|