Message32467
Notice how in Python 2.5, the breakpoint is met once then passed over, leading straight to the final print statement
--
chris@feathers:~/development/playground$ python2.5 -m pdb simple.py
> /home/chris/development/playground/simple.py(3)<module>()
-> a = 10
(Pdb) b 5
Breakpoint 1 at /home/chris/development/playground/simple.py:5
(Pdb) l
1 #!/usr/bin/env python
2
3 -> a = 10
4
5 B while a > 0:
6 a -= 1 # how do I check the value of a at end of last iter.?
7
8 print "Fin!"
[EOF]
(Pdb) r
> /home/chris/development/playground/simple.py(5)<module>()
-> while a > 0:
(Pdb) r
Fin!
--Return--
> /home/chris/development/playground/simple.py(8)<module>()->None
-> print "Fin!"
(Pdb)
|
|
Date |
User |
Action |
Args |
2007-08-23 14:58:25 | admin | link | issue1750076 messages |
2007-08-23 14:58:25 | admin | create | |
|