[New-bugs-announce] [issue32206] Run modules with pdb
Mario Corchero
report at bugs.python.org
Sun Dec 3 08:36:40 EST 2017
New submission from Mario Corchero <mariocj89 at gmail.com>:
Since PEP 338 we can run python modules as a script via `python -m module_name` but there is no way to run pdb on those (AFAIK).
The proposal is to add a new argument "-m" to the pdb module to allow users to run `python -m pdb -m my_module_name`
This is especially useful when working on cli tools that use entrypoints in setup.py, as there is no other way to run them.
I have a WIP here: https://github.com/mariocj89/cpython/commit/f47d1b779333657d7d87b21db841d5d3ad6cfa5c
Haven't sent the PR as I am still polishing some issues. If it sounds like a good idea I'll clean it up and open the PR.
----------
components: Library (Lib)
messages: 307513
nosy: mariocj89
priority: normal
severity: normal
status: open
title: Run modules with pdb
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32206>
_______________________________________
More information about the New-bugs-announce
mailing list