[issue17697] Incorrect stacktrace from pdb
Ned Deily
report at bugs.python.org
Thu Apr 11 21:39:22 CEST 2013
Ned Deily added the comment:
On python-list, Robert Kern used "where" to demonstrate the problem:
$ python pdbbug.py
first call
--Return--
> /Users/rkern/scratch/pdbbug.py(4)foo()->None
-> pdb.set_trace()
(Pdb) where
/Users/rkern/scratch/pdbbug.py(5)<module>()
-> foo('first call')
> /Users/rkern/scratch/pdbbug.py(4)foo()->None
-> pdb.set_trace()
(Pdb) c
second call
--Return--
> /Users/rkern/scratch/pdbbug.py(4)foo()->None
-> pdb.set_trace()
(Pdb) where
/Users/rkern/scratch/pdbbug.py(5)<module>()
-> foo('first call')
> /Users/rkern/scratch/pdbbug.py(4)foo()->None
-> pdb.set_trace()
(Pdb)
Searching other open pdb issues, applying the suggested fix from Issue16482 seems to correct the problem here.
----------
nosy: +ned.deily
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17697>
_______________________________________
More information about the Python-bugs-list
mailing list