[issue9325] Add an option to pdb/trace/profile to run library module as a script

Nick Coghlan report at bugs.python.org
Tue Nov 7 02:55:02 EST 2017


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Issue 21862 is a related issue specifically for the cProfile module.

In that case, cProfile's command line invocation *doesn't* use the main module, so the patch is able to just create a synthetic call to runpy.run_module as a string and compile that as the code to be profiled.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue9325>
_______________________________________


More information about the Python-bugs-list mailing list