Support 'python -m pudb script.py' on 2.6+.
This commit is contained in:
parent
5eefca6f63
commit
127388b494
@ -57,6 +57,10 @@ into the piece of code you want to debug, or run the entire script with::
|
|||||||
|
|
||||||
python -m pudb.run my-script.py
|
python -m pudb.run my-script.py
|
||||||
|
|
||||||
|
In Python 2.6 and higher, you can save four keystrokes and type::
|
||||||
|
|
||||||
|
python -m pudb my-script.py
|
||||||
|
|
||||||
Documentation and Support
|
Documentation and Support
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
3
pudb/__main__.py
Normal file
3
pudb/__main__.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if __name__ == "__main__":
|
||||||
|
from pudb.run import main
|
||||||
|
main()
|
Loading…
Reference in New Issue
Block a user