Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf991e6

Browse files
jcrmatosmiss-islington
authored andcommitted
bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)
1 parent 598e15d commit cf991e6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)