diff -r 57aac8abb437 -r f6fa312043cd Doc/library/pdb.rst --- a/Doc/library/pdb.rst Fri Oct 28 11:37:17 2016 +0200 +++ b/Doc/library/pdb.rst Fri Oct 28 05:18:12 2016 -0700 @@ -61,14 +61,14 @@ :file:`pdb.py` now accepts a ``-c`` option that executes commands as if given in a :file:`.pdbrc` file, see :ref:`debugger-commands`. -The typical usage to break into the debugger from a running program is to -insert :: +The typical usage to break into the debugger is to insert :: import pdb; pdb.set_trace() -at the location you want to break into the debugger. You can then step through -the code following this statement, and continue running without the debugger -using the :pdbcmd:`continue` command. +at the location you want to break into the debugger and then run the +program. You can then step through the code following this statement, +and continue running without the debugger using the :pdbcmd:`continue` +command. The typical usage to inspect a crashed program is::