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 belopolsky
Recipients belopolsky
Date 2010-07-21.20:24:57
SpamBayes Score 0.000988867
Marked as misclassified No
Message-id <>
The -m interpreter option allows one to run library module as a script, but if you want to debug, profile or trace the execution of the same, you must supply the path to the module source file on the command line.  The resulting execution may also be different from python -m run especially when the module is located within a package.

I would like to be able to do

$ python -m trace <trace options> --run-module <module name>

and the same with pdb and profile in place of trace.
Date User Action Args
2010-07-21 20:25:04belopolskysetrecipients: + belopolsky
2010-07-21 20:25:02belopolskysetmessageid: <>
2010-07-21 20:24:58belopolskylinkissue9325 messages
2010-07-21 20:24:58belopolskycreate