Skip to content
Merged
Prev Previous commit
Next Next commit
Rewording from Nick's review
  • Loading branch information
mariocj89 committed Jan 5, 2018
commit 6c4eed5d446a4d4dcda119cea89d8a191b80c056
5 changes: 3 additions & 2 deletions Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ useful than quitting the debugger upon program's exit.
in a :file:`.pdbrc` file, see :ref:`debugger-commands`.

.. versionadded:: 3.7
:file:`pdb.py` now accepts a ``-m`` option that execute modules similar to how
``python3 -m`` does. The debugger will stop in the first line like with a script.
:file:`pdb.py` now accepts a ``-m`` option that execute modules similar to the way
``python3 -m`` does. As with a script, the debugger will pause execution just
before the first line of the module.


The typical usage to break into the debugger from a running program is to
Expand Down
2 changes: 1 addition & 1 deletion Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ def _runmodule(self, module_name):
__main__.__dict__.update({
"__name__": "__main__",
"__file__": self.mainpyfile,
# "__package__": module_name, # Not needed, will rely on __spec__.parent
"__package__": module_name,
"__loader__": mod_spec.loader,
"__spec__": mod_spec,
"__builtins__": __builtins__,
Expand Down