New submission from Andreas Kloeckner <inf...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6322> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com