Skip to content

Commit bf2728b

Browse files
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
(cherry picked from commit 09563a7) Co-authored-by: Dong-hee Na <[email protected]>
1 parent 2b8fd74 commit bf2728b

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)