Skip to content

Commit 7516f26

Browse files
bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)
(cherry picked from commit cf991e6) Co-authored-by: João Matos <jcrmatos@gmail.com>
1 parent 1c79891 commit 7516f26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/pdb.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ at the location you want to break into the debugger. You can then step through
7676
the code following this statement, and continue running without the debugger
7777
using the :pdbcmd:`continue` command.
7878

79+
.. versionadded:: 3.7
80+
The built-in :func:`breakpoint()`, when called with defaults, can be used
81+
instead of ``import pdb; pdb.set_trace()``.
82+
7983
The typical usage to inspect a crashed program is::
8084

8185
>>> import pdb

0 commit comments

Comments
 (0)