From cf991e653ac550a9f011631447c61ce583404a57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20Matos?= Date: Wed, 30 Jan 2019 17:23:39 +0000 Subject: [PATCH] bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691) --- Doc/library/pdb.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index a72876f3f5..c7864e9e3f 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -76,6 +76,10 @@ 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. +.. versionadded:: 3.7 + The built-in :func:`breakpoint()`, when called with defaults, can be used + instead of ``import pdb; pdb.set_trace()``. + The typical usage to inspect a crashed program is:: >>> import pdb -- 2.40.0