diff options
author | João Matos <jcrmatos@gmail.com> | 2019-01-30 17:23:39 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-01-30 17:23:39 (GMT) |
commit | cf991e653ac550a9f011631447c61ce583404a57 (patch) | |
tree | a9fc0ffbc66760c43ec3a3c1b095a1686b2c9291 /Doc/library/pdb.rst | |
parent | 598e15d4feaee3849a91d92c9ca51f17baafe19c (diff) | |
download | cpython-cf991e653ac550a9f011631447c61ce583404a57.zip cpython-cf991e653ac550a9f011631447c61ce583404a57.tar.gz cpython-cf991e653ac550a9f011631447c61ce583404a57.tar.bz2 |
bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)
Diffstat (limited to 'Doc/library/pdb.rst')
-rw-r--r-- | Doc/library/pdb.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index a72876f..c7864e9 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 |