<div dir="ltr"><pre style="white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-size:11.8953px">Hello All,</pre><pre style="white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-size:11.8953px">Since <a href="http://www.python.org/dev/peps/pep-0338/" style="color:rgb(85,26,139);text-decoration-line:none">PEP 338</a> 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 possible implementation here <a href="https://github.com/python/cpython/pull/4752">https://github.com/python/cpython/pull/4752</a><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-size:11.8953px">I quite often use pdb with scripts, being able to run modules would be useful as well. What do you think?</pre><pre style="white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-size:11.8953px">Regards!
Mario</pre></div>