FIXED Nice debugger doesn't handle named arguments properly
@@ -95,8 +95,11 @@ def get_last_child(node, skip_incorrect=True):
return node.kwargs
elif hasattr(node, "starargs") and ok_node(node.starargs):
return node.starargs
- elif last_ok(node.keywords):
- return last_ok(node.keywords)
+ else:
+ kw_values = list(map(lambda x: x.value, node.keywords))
+ last_ok_kw = last_ok(kw_values)
+ if last_ok_kw:
+ return last_ok_kw
elif last_ok(node.args):
return last_ok(node.args)
else:
