[Python-ideas] pdb to support running modules

Lisa Roach lisaroach14 at gmail.com
Thu Jan 4 18:50:06 EST 2018


I also +1 this idea, I don't see a reason why we couldn't run pdb on the
modules.

On Thu, Jan 4, 2018 at 12:29 PM, Devin Jeanpierre <jeanpierreda at gmail.com>
wrote:

> 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
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180104/ff1962b5/attachment.html>


More information about the Python-ideas mailing list