parameters: (self, arg)
docstring: debug code
          Enter a recursive debugger that steps through the code
          argument (which is an arbitrary expression or statement to be
          executed in the current environment).
docstring_summary: debug code
          Enter a recursive debugger that steps through the code
          argument (which is an arbitrary expression or statement to be
          executed in the current environment).
docstring_tokens: debug code Enter a recursive debugger that steps through the code argument ( which is an arbitrary expression or statement to be executed in the current environment ) .
function: def do_debug(self, arg):
          """debug code
          Enter a recursive debugger that steps through the code
          argument (which is an arbitrary expression or statement to be
          executed in the current environment).
          """
          sys.settrace(None)
          globals = self.curframe.f_globals
          locals = self.curframe_locals
          p = Pdb(self.completekey, self.stdin, self.stdout)
          p.prompt = "(%s) " % self.prompt.strip()
          self.message("ENTERING RECURSIVE DEBUGGER")
          try:
              sys.call_tracing(p.run, (arg, globals, locals))
          except Exception:
              exc_info = sys.exc_info()[:2]
              self.error(traceback.format_exception_only(*exc_info)[-1].strip())
          self.message("LEAVING RECURSIVE DEBUGGER")
          sys.settrace(self.trace_dispatch)
          self.lastcmd = p.lastcmd
function_tokens: def do_debug ( self , arg ) : sys . settrace ( None ) globals = self . curframe . f_globals locals = self . curframe_locals p = Pdb ( self . completekey , self . stdin , self . stdout ) p . prompt = "(%s) " % self . prompt . strip ( ) self . message ( "ENTERING RECURSIVE DEBUGGER" ) try : sys . call_tracing ( p . run , ( arg , globals , locals ) ) except Exception : exc_info = sys . exc_info ( ) [ : 2 ] self . error ( traceback . format_exception_only ( * exc_info ) [ - 1 ] . strip ( ) ) self . message ( "LEAVING RECURSIVE DEBUGGER" ) sys . settrace ( self . trace_dispatch ) self . lastcmd = p . lastcmd