code: def hook(klass):
      
  
      if not hasattr(klass, 'do_vim'):
          setupMethod(klass, trace_dispatch)
          klass.__bases__ += (SwitcherToVimpdb, )
docs: monkey-patch pdb.Pdb class
  
      adds a 'vim' (and 'v') command:
      it switches to debugging with vimpdb