parameters: (self, frame=None)
docstring: Start debugging from `frame`.
  
          If frame is not specified, debugging starts from caller's frame.
docstring_summary: Start debugging from `frame`.
docstring_tokens: Start debugging from frame .
function: def set_trace(self, frame=None):
          """Start debugging from `frame`.
  
          If frame is not specified, debugging starts from caller's frame.
          """
          if frame is None:
              frame = sys._getframe().f_back
          self.reset()
          while frame:
              frame.f_trace = self.trace_dispatch
              self.botframe = frame
              frame = frame.f_back
          self.set_step()
          sys.settrace(self.trace_dispatch)
function_tokens: def set_trace ( self , frame = None ) : if frame is None : frame = sys . _getframe ( ) . f_back self . reset ( ) while frame : frame . f_trace = self . trace_dispatch self . botframe = frame frame = frame . f_back self . set_step ( ) sys . settrace ( self . trace_dispatch )