MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / resolve_compound_var_object_fields

Function resolve_compound_var_object_fields

_pydevd_bundle/pydevd_vars.py:167–185  ·  view source on GitHub ↗

Resolve compound variable by its object and attributes :param var: an object of variable :param attrs: a sequence of variable's attributes separated by \t (i.e.: obj\tattr1\tattr2) :return: a dictionary of variables's fields

(var, attrs)

Source from the content-addressed store, hash-verified

165
166
167def resolve_compound_var_object_fields(var, attrs):
168 """
169 Resolve compound variable by its object and attributes
170
171 :param var: an object of variable
172 :param attrs: a sequence of variable's attributes separated by \t (i.e.: obj\tattr1\tattr2)
173 :return: a dictionary of variables's fields
174 """
175 attr_list = attrs.split("\t")
176
177 for k in attr_list:
178 type, _type_name, resolver = get_type(var)
179 var = resolver.resolve(var, k)
180
181 try:
182 type, _type_name, resolver = get_type(var)
183 return resolver.get_dictionary(var)
184 except:
185 pydev_log.exception()
186
187
188def custom_operation(dbg, thread_id, frame_id, scope, attrs, style, code_or_file, operation_fn_name):

Callers

nothing calls this directly

Calls 3

exceptionMethod · 0.80
resolveMethod · 0.45
get_dictionaryMethod · 0.45

Tested by

no test coverage detected