Skip to content

Commit d0b0570

Browse files
committed
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost
1 parent bcc4cb0 commit d0b0570

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)