[New-bugs-announce] [issue28610] Provide PDB hook to customize how to find source files
Pinku Surana
report at bugs.python.org
Fri Nov 4 12:18:28 EDT 2016
New submission from Pinku Surana:
I am using Python as a hosted scripting runtime for a product. All the user scripts are stored in a database. I use "compile" and "exec" to run the scripts. I'd like to use PDB to debug scripts. Unfortunately, PDB makes a call to linecache, which calls tokenize.open assuming the code is in a file. I'd like to pass in a function that takes a filename and returns the source code in a string.
At the very least, moving the call to "linecache.getline" into a separate method in PDB ("self.get_lines") would allow me to override that method with my own.
----------
components: Demos and Tools, Library (Lib)
messages: 280056
nosy: Pinku Surana
priority: normal
severity: normal
status: open
title: Provide PDB hook to customize how to find source files
type: enhancement
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28610>
_______________________________________
More information about the New-bugs-announce
mailing list