def getVariable(self, attributes): try: namespace = self.get_namespace() debug_values = [] val_dict = pydevd_vars.resolve_compound_var_object_fields( namespace, attributes, self.user_type_renderers) if val_dict is None: val_dict = {} keys = val_dict.keys() for k in keys: val = val_dict[k] evaluate_full_value = pydevd_thrift.should_evaluate_full_value( val) debug_values.append( pydevd_thrift.var_to_struct( val, k, evaluate_full_value=evaluate_full_value, user_type_renderers=self.user_type_renderers)) return debug_values except: traceback.print_exc() raise PythonUnhandledException(traceback.format_exc())
def getVariable(self, attributes): debug_values = [] val_dict = pydevd_vars.resolve_compound_var_object_fields(self.get_namespace(), attributes) if val_dict is None: val_dict = {} keys = val_dict.keys() for k in keys: val = val_dict[k] evaluate_full_value = pydevd_thrift.should_evaluate_full_value(val) debug_values.append(pydevd_thrift.var_to_struct(val, k, evaluate_full_value=evaluate_full_value)) return debug_values
def getVariable(self, attributes): xml = StringIO.StringIO() xml.write("<xml>") val_dict = pydevd_vars.resolve_compound_var_object_fields(self.get_namespace(), attributes) if val_dict is None: val_dict = {} for k, val in dict_iter_items(val_dict): val = val_dict[k] evaluate_full_value = pydevd_xml.should_evaluate_full_value(val) xml.write(pydevd_vars.var_to_xml(val, k, evaluate_full_value=evaluate_full_value)) xml.write("</xml>") return xml.getvalue()
def get_variable(pydev_text): ipython_shell = get_ipython() val_dict = resolve_compound_var_object_fields(ipython_shell.user_ns, pydev_text) if val_dict is None: val_dict = {} xml_list = ["<xml>"] for k in dict_keys(val_dict): val = val_dict[k] evaluate_full_value = should_evaluate_full_value(val) xml_list.append( var_to_xml(val, k, evaluate_full_value=evaluate_full_value)) xml_list.append("</xml>") print(''.join(xml_list))
def getVariable(self, attributes): debug_values = [] val_dict = pydevd_vars.resolve_compound_var_object_fields( self.get_namespace(), attributes) if val_dict is None: val_dict = {} keys = val_dict.keys() for k in keys: val = val_dict[k] evaluate_full_value = pydevd_thrift.should_evaluate_full_value(val) debug_values.append( pydevd_thrift.var_to_struct( val, k, evaluate_full_value=evaluate_full_value)) return debug_values
def getVariable(self, attributes): xml = StringIO.StringIO() xml.write("<xml>") val_dict = pydevd_vars.resolve_compound_var_object_fields(self.get_namespace(), attributes) if val_dict is None: val_dict = {} keys = val_dict.keys() for k in keys: val = val_dict[k] evaluate_full_value = pydevd_xml.should_evaluate_full_value(val) xml.write(pydevd_vars.var_to_xml(val, k, evaluate_full_value=evaluate_full_value)) xml.write("</xml>") return xml.getvalue()