code: def do_it(self, dbg):
          ''' Get completions and write back to the client
          '''
          try:
              frame = dbg.find_frame(self.thread_id, self.frame_id)
              completions_xml = pydevd_console.get_completions(frame, self.act_tok)
              cmd = dbg.cmd_factory.make_send_console_message(self.sequence, completions_xml)
              dbg.writer.add_command(cmd)
          except:
              exc = get_exception_traceback_str()
              cmd = dbg.cmd_factory.make_error_message(self.sequence, "Error in fetching completions" + exc)
              dbg.writer.add_command(cmdf do_it(self, dbg):
          ''' Get completions and write back to the client
          '''
          try:
              frame = dbg.find_frame(self.thread_id, self.frame_id)
              completions_xml = pydevd_console.get_completions(frame, self.act_tok)
              cmd = dbg.cmd_factory.make_send_console_message(self.sequence, completions_xml)
              dbg.writer.add_command(cmd)
          except:
              exc = get_exception_traceback_str()
              cmd = dbg.cmd_factory.make_error_message(self.sequence, "Error in fetching completions" + exc)
              dbg.writer.add_command(cmd)
docs: Get completions and write back to the client