]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Fri, 7 Jan 2022 19:41:23 +0000 (21:41 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Jan 2022 19:41:23 +0000 (19:41 +0000)
Co-authored-by: Ian Kelling <ian@iankelling.org>
Doc/library/pdb.rst

index 6d1dba1bf2eb01e8a964b752fb21238df1615161..ca59576336bf8a236f22c63776eee1a879f9d832 100644 (file)
@@ -67,14 +67,13 @@ useful than quitting the debugger upon program's exit.
    before the first line of the module.
 
 
-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.
 
 .. versionadded:: 3.7
    The built-in :func:`breakpoint()`, when called with defaults, can be used