mirror of https://github.com/python/cpython.git
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
(cherry picked from commit 09563a764e
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
parent
2b8fd74548
commit
bf2728b9f1
|
@ -164,6 +164,8 @@ are always available. They are listed here in alphabetical order.
|
|||
:func:`sys.breakpointhook` can be set to some other function and
|
||||
:func:`breakpoint` will automatically call that, allowing you to drop into
|
||||
the debugger of choice.
|
||||
If :func:`sys.breakpointhook` is not available to be called, this function will
|
||||
raise :exc:`RuntimeError`.
|
||||
|
||||
.. audit-event:: builtins.breakpoint breakpointhook breakpoint
|
||||
|
||||
|
|
Loading…
Reference in New Issue