Skip to content

Commit 09563a7

Browse files
authored
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
1 parent a4a9f2e commit 09563a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/functions.rst

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ are always available. They are listed here in alphabetical order.
164164
:func:`sys.breakpointhook` can be set to some other function and
165165
:func:`breakpoint` will automatically call that, allowing you to drop into
166166
the debugger of choice.
167+
If :func:`sys.breakpointhook` is not available to be called, this function will
168+
raise :exc:`RuntimeError`.
167169

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

0 commit comments

Comments
 (0)