mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)
This commit is contained in:
parent
598e15d4fe
commit
cf991e653a
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
the code following this statement, and continue running without the debugger
|
||||||
using the :pdbcmd:`continue` command.
|
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::
|
The typical usage to inspect a crashed program is::
|
||||||
|
|
||||||
>>> import pdb
|
>>> import pdb
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue