Message32468
Notice how in Python 2.4, the breakpoint is honored through each iteration through the while loop.
--
chris@feathers:~/development/playground$ python2.4 -m pdb simple.py
> /home/chris/development/playground/simple.py(3)?()
-> 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)?()
-> while a > 0:
(Pdb) p a
10
(Pdb) r
> /home/chris/development/playground/simple.py(5)?()
-> while a > 0:
(Pdb) p a
9
(Pdb) r
> /home/chris/development/playground/simple.py(5)?()
-> while a > 0:
(Pdb) p a
8
(Pdb)
|
|
Date |
User |
Action |
Args |
2007-08-23 14:58:25 | admin | link | issue1750076 messages |
2007-08-23 14:58:25 | admin | create | |
|