Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e92f704

Browse files
committed
Set InterruptiblePdb as the default debugger.
This make sure that user can stop pdb with SigInt, for example if you refresh your notebook while being in a debug session.
1 parent 69dbfc1 commit e92f704

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IPython/core/interactiveshell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
from IPython.core.builtin_trap import BuiltinTrap
4444
from IPython.core.events import EventManager, available_events
4545
from IPython.core.compilerop import CachingCompiler, check_linecache_ipython
46-
from IPython.core.debugger import Pdb
46+
from IPython.core.debugger import InterruptiblePdb
4747
from IPython.core.display_trap import DisplayTrap
4848
from IPython.core.displayhook import DisplayHook
4949
from IPython.core.displaypub import DisplayPublisher
@@ -1832,7 +1832,7 @@ def init_history(self):
18321832
# Things related to exception handling and tracebacks (not debugging)
18331833
#-------------------------------------------------------------------------
18341834

1835-
debugger_cls = Pdb
1835+
debugger_cls = InterruptiblePdb
18361836

18371837
def init_traceback_handlers(self, custom_exceptions):
18381838
# Syntax error handler.

0 commit comments

Comments
 (0)