8000 Add a mention of PYTHONBREAKPOINT to breakpoint() docs (#104430) · python/cpython@1be80ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 1be80ed

Browse files
authored
Add a mention of PYTHONBREAKPOINT to breakpoint() docs (#104430)
1 parent 57139a6 commit 1be80ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/functions.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ are always available. They are listed here in alphabetical order.
168168
If :func:`sys.breakpointhook` is not accessible, this function will
169169
raise :exc:`RuntimeError`.
170170

171+
By default, the behavior of :func:`breakpoint` can be changed with
172+
the :envvar:`PYTHONBREAKPOINT` environment variable.
173+
See :func:`sys.breakpointhook` for usage details.
174+
175+
Note that this is not guaranteed if :func:`sys.breakpointhook`
176+
has been replaced.
177+
171178
.. audit-event:: builtins.breakpoint breakpointhook breakpoint
172179

173180
.. versionadded:: 3.7

0 commit comments

Comments
 (0)
0