[Python-ideas] pdb to support running modules

Devin Jeanpierre jeanpierreda at gmail.com
Thu Jan 4 15:29:24 EST 2018


On Thu, Jan 4, 2018 at 1:56 PM, Mario Corchero <mariocj89 at gmail.com> wrote:
> 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`

Mega +1, I always, always want this, for every command that itself can
invoke other python scripts. There is prior art in that this feature
was already added to cProfile as well:
https://bugs.python.org/issue21862

-- Devin


More information about the Python-ideas mailing list