Skip to content

Commit

Permalink
[3.11] Add a mention of PYTHONBREAKPOINT to breakpoint() docs (GH-104430
Browse files Browse the repository at this point in the history
) (#104447)

Add a mention of PYTHONBREAKPOINT to breakpoint() docs (GH-104430)
(cherry picked from commit 1be80ed)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
  • Loading branch information
miss-islington and nedbat committed May 13, 2023
1 parent 328b5dd commit e794d46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e794d46

Please sign in to comment.