diff options
author | Dong-hee Na <donghee.na@python.org> | 2022-08-24 14:03:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 14:03:36 (GMT) |
commit | 09563a764ebc54f98087c128419f46cf0822b4b7 (patch) | |
tree | 257a52feb17d0b133faee7b8e78de3c0e6f1b045 /Doc/library/functions.rst | |
parent | a4a9f2e879c0c9572e0cecbc702dc1dd31f80221 (diff) | |
download | cpython-09563a764ebc54f98087c128419f46cf0822b4b7.zip cpython-09563a764ebc54f98087c128419f46cf0822b4b7.tar.gz cpython-09563a764ebc54f98087c128419f46cf0822b4b7.tar.bz2 |
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index da7de18..fbde912 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 |