File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1638,9 +1638,11 @@ def help():
1638
1638
pydoc .pager (__doc__ )
1639
1639
1640
1640
_usage = """\
1641
- usage: pdb.py [-c command] ... pyfile [arg] ...
1641
+ usage: pdb.py [-c command] ... [-m module | pyfile] [arg] ...
1642
1642
1643
- Debug the Python program given by pyfile.
1643
+ Debug the Python program given by pyfile. Alternatively,
1644
+ an executable module or package to debug can be specified using
1645
+ the -m switch.
1644
1646
1645
1647
Initial commands are read from .pdbrc files in your home directory
1646
1648
and in the current directory, if they exist. Commands supplied with
Original file line number Diff line number Diff line change @@ -1182,7 +1182,10 @@ def test_run_pdb_with_pdb(self):
1182
1182
quit
1183
1183
"""
1184
1184
stdout , stderr = self ._run_pdb (["-m" , "pdb" ], commands )
1185
- self .assertIn ("Debug the Python program given by pyfile." , stdout .splitlines ())
1185
+ self .assertIn (
1186
+ pdb ._usage ,
1187
+ stdout .replace ('\r ' , '' ) # remove \r for windows
1188
+ )
1186
1189
1187
1190
def test_module_without_a_main (self ):
1188
1191
module_name = 't_main'
You can’t perform that action at this time.
0 commit comments