This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mariocj89
Recipients mariocj89
Date 2017-12-03.13:36:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512308200.99.0.213398074469.issue32206@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-12-03 13:36:41mariocj89setrecipients: + mariocj89
2017-12-03 13:36:40mariocj89setmessageid: <1512308200.99.0.213398074469.issue32206@psf.upfronthosting.co.za>
2017-12-03 13:36:40mariocj89linkissue32206 messages
2017-12-03 13:36:40mariocj89create