[issue13328] pdb shows code from wrong module
Arkadiusz Wahlig
report at bugs.python.org
Thu Nov 3 01:13:26 CET 2011
Arkadiusz Wahlig <arkadiusz.wahlig at gmail.com> added the comment:
How to reproduce:
Given a module foo.py imported using zipimport with a function bar, if we try to set a breakpoint in bar using:
> break foo.bar
pdb would take filename and lineno from the function object but would use current frame to get module globals.
linecache would return a line from current module but also store it in cache under foo's filename.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13328>
_______________________________________
More information about the Python-bugs-list
mailing list