def doIt(self, dbg): """ Converts request into python variable """ try: pydevd_vars.changeAttrExpression(self.thread_id, self.frame_id, self.attr, self.expression) except Exception: cmd = dbg.cmdFactory.makeErrorMessage(self.sequence, "Error changing variable attr:%s expression:%s traceback:%s" % (self.attr, self.expression, GetExceptionTracebackStr())) dbg.writer.addCommand(cmd)
def doIt(self, dbg): """ Converts request into python variable """ try: result = pydevd_vars.changeAttrExpression(self.thread_id, self.frame_id, self.attr, self.expression) xml = "<xml>" xml += pydevd_vars.varToXML(result, "") xml += "</xml>" cmd = dbg.cmdFactory.makeVariableChangedMessage(self.sequence, xml) dbg.writer.addCommand(cmd) except Exception: cmd = dbg.cmdFactory.makeErrorMessage(self.sequence, "Error changing variable attr:%s expression:%s traceback:%s" % (self.attr, self.expression, GetExceptionTracebackStr())) dbg.writer.addCommand(cmd)