Skip to content

Commit

Permalink
Add a mention of PYTHONBREAKPOINT to breakpoint() docs (#104430)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat authored May 13, 2023
1 parent 57139a6 commit 1be80ed
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 1be80ed

Please sign in to comment.