Skip to content

Commit

Permalink
add a mention of PYTHONBREAKPOINT to breakpoint() docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed May 12, 2023
1 parent b7597da commit af9ee3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ 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 (if :func:`sys.breakpointhook` has not been replaced), the
behavior of :func:`breakpoint` can be changed with the
:envvar:`PYTHONBREAKPOINT` environment variable. See
:func:`sys.breakpointhook` for details.

.. audit-event:: builtins.breakpoint breakpointhook breakpoint

.. versionadded:: 3.7
Expand Down

0 comments on commit af9ee3f

Please sign in to comment.