This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gotgenes
Recipients
Date 2007-07-08.23:35:45
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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) 
History
Date User Action Args
2007-08-23 14:58:25adminlinkissue1750076 messages
2007-08-23 14:58:25admincreate