code: def do_it(self, dbg):
          ''' Converts request into python variable '''
          try:
              try:
                  # don't trace new threads created by console command
                  disable_trace_thread_modules()
  
                  result = pydevconsole.console_exec(self.thread_id, self.frame_id, self.expression, dbg)
                  xml = "<xml>"
                  xml += pydevd_xml.var_to_xml(result, "")
                  xml += "</xml>"
                  cmd = dbg.cmd_factory.make_evaluate_expression_message(self.sequence, xml)
                  dbg.writer.add_command(cmd)
              except:
                  exc = get_exception_traceback_str()
                  sys.stderr.write('%s\n' % (exc,))
                  cmd = dbg.cmd_factory.make_error_message(self.sequence, "Error evaluating console expression " + exc)
                  dbg.writer.add_command(cmd)
          finally:
              enable_trace_thread_modules()
  
              sys.stderr.flush()
              sys.stdout.flush(f do_it(self, dbg):
          ''' Converts request into python variable '''
          try:
              try:
                  # don't trace new threads created by console command
                  disable_trace_thread_modules()
  
                  result = pydevconsole.console_exec(self.thread_id, self.frame_id, self.expression, dbg)
                  xml = "<xml>"
                  xml += pydevd_xml.var_to_xml(result, "")
                  xml += "</xml>"
                  cmd = dbg.cmd_factory.make_evaluate_expression_message(self.sequence, xml)
                  dbg.writer.add_command(cmd)
              except:
                  exc = get_exception_traceback_str()
                  sys.stderr.write('%s\n' % (exc,))
                  cmd = dbg.cmd_factory.make_error_message(self.sequence, "Error evaluating console expression " + exc)
                  dbg.writer.add_command(cmd)
          finally:
              enable_trace_thread_modules()
  
              sys.stderr.flush()
              sys.stdout.flush()
docs: Converts request into python variable