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,