From e425115857b921a8d83cfb3401b807b9353b9d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Matos?= Date: Mon, 28 Jan 2019 18:03:40 +0000 Subject: [PATCH 1/3] Add reference to Python 3.7 new breakpoint() function. --- Doc/library/pdb.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index a72876f3f5a8c0..969e2036e3127a 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -76,6 +76,9 @@ 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 From eff06f5e91a67aff86c208b2b05301f0ce0cf937 Mon Sep 17 00:00:00 2001 From: Mariatta Date: Mon, 28 Jan 2019 19:20:45 +0000 Subject: [PATCH 2/3] Comply with max line length. Co-Authored-By: jcrmatos --- Doc/library/pdb.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 969e2036e3127a..8da18e277b0166 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -77,7 +77,8 @@ 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 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:: From 18082c12fcfcb07e5b5be536f748a4e3fe079f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Matos?= Date: Mon, 28 Jan 2019 19:44:48 +0000 Subject: [PATCH 3/3] Remove trailing white space. --- Doc/library/pdb.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 8da18e277b0166..c7864e9e3f2225 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -77,7 +77,7 @@ 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 + 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::