From 699d94cc1151fc926c1bfb88029383350fd47173 Mon Sep 17 00:00:00 2001 From: Stephen Macke Date: Fri, 13 Dec 2024 08:11:21 -1000 Subject: [PATCH] make debugger class configurable --- ipykernel/ipkernel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipykernel/ipkernel.py b/ipykernel/ipkernel.py index 48efa6cd6..7aa7f6f93 100644 --- a/ipykernel/ipkernel.py +++ b/ipykernel/ipkernel.py @@ -71,6 +71,8 @@ class IPythonKernel(KernelBase): shell = Instance("IPython.core.interactiveshell.InteractiveShellABC", allow_none=True) shell_class = Type(ZMQInteractiveShell) + debugger_class = Type(Debugger) + use_experimental_completions = Bool( True, help="Set this flag to False to deactivate the use of experimental IPython completion APIs.", @@ -114,7 +116,7 @@ def __init__(self, **kwargs): # Initialize the Debugger if _is_debugpy_available: - self.debugger = Debugger( + self.debugger = self.debugger_class( self.log, self.debugpy_socket, self._publish_debug_event,