Message280056
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. |
|
Date |
User |
Action |
Args |
2016-11-04 16:18:28 | Pinku Surana | set | recipients:
+ Pinku Surana |
2016-11-04 16:18:28 | Pinku Surana | set | messageid: <1478276308.14.0.744834650748.issue28610@psf.upfronthosting.co.za> |
2016-11-04 16:18:28 | Pinku Surana | link | issue28610 messages |
2016-11-04 16:18:27 | Pinku Surana | create | |
|