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 inducer
Recipients inducer
Date 2009-06-22.14:09:12
SpamBayes Score 1.8748666e-07
Marked as misclassified No
Message-id <1245679754.68.0.982838087844.issue6322@psf.upfronthosting.co.za>
In-reply-to
Content
Take this program:

8< -----------------------------------------------
print "START"

a = [
        1
        for i in range(10)]
8< -----------------------------------------------

as "a.py", run "python -m pdb a.py", say "b 3" to set a breakpoint on
line 3. Say "c" to start execution. Watch the program finish without
ever hitting the breakpoint.

The problem is that line 3 has no bytecode generated for it, so there's
nothing to break on. Pdb should provide feedback in this case. I'm the
author of PuDB, and I've written code to check for this condition Please
feel free to steal that code, here:

http://is.gd/19fvD
History
Date User Action Args
2009-06-22 14:09:14inducersetrecipients: + inducer
2009-06-22 14:09:14inducersetmessageid: <1245679754.68.0.982838087844.issue6322@psf.upfronthosting.co.za>
2009-06-22 14:09:13inducerlinkissue6322 messages
2009-06-22 14:09:12inducercreate