[New-bugs-announce] [issue6322] Pdb breakpoints don't work on lines without bytecode

Andreas Kloeckner report at bugs.python.org
Mon Jun 22 16:09:14 CEST 2009


New submission from Andreas Kloeckner <inform at tiker.net>:

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

----------
components: Library (Lib)
messages: 89597
nosy: inducer
severity: normal
status: open
title: Pdb breakpoints don't work on lines without bytecode
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6322>
_______________________________________


More information about the New-bugs-announce mailing list