From: Dong-hee Na Date: Wed, 24 Aug 2022 14:03:36 +0000 (+0900) Subject: gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231) X-Git-Tag: v3.12.0a1~575 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09563a764ebc54f98087c128419f46cf0822b4b7;p=thirdparty%2FPython%2Fcpython.git gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231) --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index da7de18722f8..fbde9129274e 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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