Skip to content

Commit

Permalink
make debugger class configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed Dec 13, 2024
1 parent 188f39c commit 699d94c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ipykernel/ipkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 699d94c

Please sign in to comment.