Message161567
| Author |
xdegaye |
| Recipients |
xdegaye |
| Date |
2012年05月25日.11:35:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337945757.27.0.114974346451.issue14912@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In the following session, main.py is changed just before the restart
command. Pdb does not stop at Breakpoint 1 after the last continue.
$ python -m pdb main.py
> /path_to/main.py(1)<module>()
-> def foo():
(Pdb) import sys; print(sys.version)
3.2.2 (default, Dec 27 2011, 17:35:55)
[GCC 4.3.2]
(Pdb) break foo
Breakpoint 1 at /path_to/main.py:1
(Pdb) list
1 B-> def foo():
2 x = 1
3 x = 2
4
5 foo()
[EOF]
(Pdb) continue
> /path_to/main.py(2)foo()
-> x = 1
(Pdb) restart
Restarting main.py with arguments:
main.py
> /path_to/main.py(1)<module>()
-> def bar():
(Pdb) list
1 B-> def bar():
2 x = 1
3 x = 2
4
5 def foo():
6 bar()
7
8 foo()
[EOF]
(Pdb) continue
The program finished and will be restarted
> /path_to/main.py(1)<module>()
-> def bar():
(Pdb) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月25日 11:35:57 | xdegaye | set | recipients:
+ xdegaye |
| 2012年05月25日 11:35:57 | xdegaye | set | messageid: <1337945757.27.0.114974346451.issue14912@psf.upfronthosting.co.za> |
| 2012年05月25日 11:35:56 | xdegaye | link | issue14912 messages |
| 2012年05月25日 11:35:56 | xdegaye | create |
|