Add a mention of PYTHONBREAKPOINT to breakpoint() docs (#104430)

This commit is contained in:
Ned Batchelder 2023-05-13 00:12:03 -07:00 committed by GitHub
parent 57139a6b5f
commit 1be80ed107
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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