[Python-checkins] gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
corona10
webhook-mailer at python.org
Wed Aug 24 10:04:11 EDT 2022
https://github.com/python/cpython/commit/09563a764ebc54f98087c128419f46cf0822b4b7
commit: 09563a764ebc54f98087c128419f46cf0822b4b7
branch: main
author: Dong-hee Na <donghee.na at python.org>
committer: corona10 <donghee.na92 at gmail.com>
date: 2022-08-24T23:03:36+09:00
summary:
gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231)
files:
M Doc/library/functions.rst
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index da7de18722f..fbde9129274 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
More information about the Python-checkins
mailing list