mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.11] Add a mention of PYTHONBREAKPOINT to breakpoint() docs (GH-104430) (#104447)
Add a mention of PYTHONBREAKPOINT to breakpoint() docs (GH-104430)
(cherry picked from commit 1be80ed107
)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
This commit is contained in:
parent
328b5dd829
commit
e794d469e3
1 changed files with 7 additions and 0 deletions
|
@ -168,6 +168,13 @@ are always available. They are listed here in alphabetical order.
|
|||
If :func:`sys.breakpointhook` is not accessible, this function will
|
||||
raise :exc:`RuntimeError`.
|
||||
|
||||
By default, the behavior of :func:`breakpoint` can be changed with
|
||||
the :envvar:`PYTHONBREAKPOINT` environment variable.
|
||||
See :func:`sys.breakpointhook` for usage details.
|
||||
|
||||
Note that this is not guaranteed if :func:`sys.breakpointhook`
|
||||
has been replaced.
|
||||
|
||||
.. audit-event:: builtins.breakpoint breakpointhook breakpoint
|
||||
|
||||
.. versionadded:: 3.7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue