[issue6246] Python bebugger ignores exception if instructed to return from generator

Andreas Kloeckner report at bugs.python.org
Tue Jun 9 01:06:41 CEST 2009


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

I get this debugger session with the attached file. Note that even
though a NameError occurs, no indication of that error is visible on the
debugger conosle.
8< -----------------------------------------------------------------
$ python -m pdb pdb_bug.py
> /home/andreas/tmp/pdb_bug.py(1)<module>()
-> def f():
(Pdb) n
> /home/andreas/tmp/pdb_bug.py(6)<module>()
-> list(f())
(Pdb) s
--Call--
> /home/andreas/tmp/pdb_bug.py(1)f()
-> def f():
(Pdb) n
> /home/andreas/tmp/pdb_bug.py(2)f()
-> print "BLAH"
(Pdb) r
BLAH
--Return--
> /home/andreas/tmp/pdb_bug.py(3)f()->None
-> bogus
(Pdb)

----------
components: Library (Lib)
files: pdb_bug.py
messages: 89123
nosy: inducer
severity: normal
status: open
title: Python bebugger ignores exception if instructed to return from generator
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file14239/pdb_bug.py

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


More information about the Python-bugs-list mailing list