def doIt(self, dbg):
     """ Converts request into python variable """
     try:
         result = pydevd_vars.evaluateExpression(self.thread_id, self.frame_id, self.expression, self.doExec)
         xml = "<xml>"
         xml += pydevd_vars.varToXML(result, "")
         xml += "</xml>"
         cmd = dbg.cmdFactory.makeEvaluateExpressionMessage(self.sequence, xml)
         dbg.writer.addCommand(cmd)
     except:
         exc = GetExceptionTracebackStr()
         print >> sys.stderr, exc
         cmd = dbg.cmdFactory.makeErrorMessage(self.sequence, "Error evaluating expression " + exc)
         dbg.writer.addCommand(cmd)
Exemple #2
0
 def doIt(self, dbg):
     """ Converts request into python variable """
     try:
         result = pydevd_vars.evaluateExpression(self.thread_id, self.frame_id, self.expression, self.doExec)
         xml = "<xml>"
         xml += pydevd_vars.varToXML(result, "", self.doTrim)
         xml += "</xml>"
         cmd = dbg.cmdFactory.makeEvaluateExpressionMessage(self.sequence, xml)
         dbg.writer.addCommand(cmd)
     except:
         exc = GetExceptionTracebackStr()
         sys.stderr.write('%s\n' % (exc,))
         cmd = dbg.cmdFactory.makeErrorMessage(self.sequence, "Error evaluating expression " + exc)
         dbg.writer.addCommand(cmd)