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 christian.heimes
Recipients christian.heimes
Date 2007-10-11.16:00:51
SpamBayes Score 0.04041794
Marked as misclassified No
Message-id <1192118452.75.0.65576179893.issue1265@psf.upfronthosting.co.za>
In-reply-to
Content
found a pretty annoying bug caused by with blocks. A with block
terminates the debugging session and the program keeps running. It's not
possible to go to the next line with 'n'. 's' steps into the open() call.

# pdbtest.py
import pdb
pdb.set_trace()
print("before with")
with open("/etc/passwd") as fd:
    data = fd.read()
print("after with")
print("end of program")

$ ./python pdbtest.py
> /home/heimes/dev/python/py3k/pdbtest.py(3)<module>()
-> print("before with")
(Pdb) n
before with
> /home/heimes/dev/python/py3k/pdbtest.py(4)<module>()
-> with open("/etc/passwd") as fd:
(Pdb) n
after with
end of program
History
Date User Action Args
2007-10-11 16:00:53christian.heimessetspambayes_score: 0.0404179 -> 0.04041794
recipients: + christian.heimes
2007-10-11 16:00:52christian.heimessetspambayes_score: 0.0404179 -> 0.0404179
messageid: <1192118452.75.0.65576179893.issue1265@psf.upfronthosting.co.za>
2007-10-11 16:00:52christian.heimeslinkissue1265 messages
2007-10-11 16:00:52christian.heimescreate