Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support 'python -m pudb script.py' on 2.6+.

  • Loading branch information...
commit 127388b4945c259fbc620a9f4c87a66f2423aac8 1 parent 5eefca6
Andreas Klöckner authored
Showing with 7 additions and 0 deletions.
  1. +4 −0 README.rst
  2. +3 −0  pudb/__main__.py
4 README.rst
View
@@ -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
+In Python 2.6 and higher, you can save four keystrokes and type::
+
+ python -m pudb my-script.py
+
Documentation and Support
-------------------------
3  pudb/__main__.py
View
@@ -0,0 +1,3 @@
+if __name__ == "__main__":
+ from pudb.run import main
+ main()
Please sign in to comment.
Something went wrong with that request. Please try again.