Skip to content

Commit

Permalink
Add a mention of PYTHONBREAKPOINT to breakpoint() docs (pythonGH-104430)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1be80ed)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
  • Loading branch information
nedbat authored and miss-islington committed May 13, 2023
1 parent 328b5dd commit 03a2258
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 03a2258

Please sign in to comment.