class_docstr: Version of debugger where KeyboardInterrupt exits the debugger altogether.
class_docstr_tok: ["Version","of","debugger","where","KeyboardInterrupt","exits","the","debugger","altogether","."]
docstr: Wrap cmdloop() such that KeyboardInterrupt stops the debugger.
docstr_tok: ["Wrap","cmdloop","(",")","such","that","KeyboardInterrupt","stops","the","debugger","."]
code: def cmdloop(self, intro=None):
      """Wrap cmdloop() such that KeyboardInterrupt stops the debugger."""
      try:
          return OldPdb.cmdloop(self, intro=intro)
      except KeyboardInterrupt:
          self.stop_here = lambda frame: False
          self.do_quit("")
          sys.settrace(None)
          self.quitting = False
          raise
  
imports: import inspect
  import linecache
  import sys
  import re
  import os
  from IPython import get_ipython
  from contextlib import contextmanager
  from IPython.utils import PyColorize
  from IPython.utils import coloransi, py3compat
  from IPython.core.excolors import exception_colors
  from pdb import Pdb
label_desc: Use image node_id 1 for calling the InterruptiblePdb obj's underlying member method code with example usage: obj.cmdloop(intro) and returns: OldPdb