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 8602f8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ are always available. They are listed here in alphabetical order.
.. versionchanged:: 3.7
*x* is now a positional-only parameter.

.. function:: breakpoint(*args, **kws)
.. function:: breakpoint(\*args, \**kws)

This function drops you into the debugger at the call site. Specifically,
it calls :func:`sys.breakpointhook`, passing ``args`` and ``kws`` straight
Expand All @@ -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`. See the docs for :func:`sys.breakpointhook` for
details.

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

.. versionadded:: 3.7
Expand Down

0 comments on commit 8602f8a

Please sign in to comment.