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

https://github.com/python/cpython/commit/bf2728b9f1a9873f22382c72f21adb98046... commit: bf2728b9f1a9873f22382c72f21adb98046f613c branch: 3.11 author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> committer: miss-islington <31488909+miss-islington@users.noreply.github.com> date: 2022-08-24T07:20:22-07:00 summary: gh-96197: Define the behavior of breakpoint if sys.breakpointhook is lost (gh-96231) (cherry picked from commit 09563a764ebc54f98087c128419f46cf0822b4b7) Co-authored-by: Dong-hee Na <donghee.na@python.org> 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
participants (1)
-
miss-islington