gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)

This commit is contained in:
Dong-hee Na 2022-08-24 23:03:36 +09:00 committed by GitHub
parent a4a9f2e879
commit 09563a764e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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