Debugger: Handle anonymous function arguments

Change-Id: I1caa0ace47d59ea182470795634c00ef5fd7c345
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-09-02 15:14:06 +02:00
committed by hjk
parent d76ba6c99e
commit 33fc9e209d
+5
View File
@@ -1473,6 +1473,11 @@ class Dumper:
"__doc__", "__loader__", "__cached__", "__the_dumper__"):
continue
value = frame.f_locals[var]
# this applies only for anonymous arguments
# e.g. def dummy(var, (width, height), var2) would create an anonymous local var
# named '.1' for (width, height) as this is the second argument
if var.startswith('.'):
var = "@arg" + var[1:]
self.dumpValue(value, var, "local.%s" % var)
self.output += '}'
self.output += '{frame="%s"}' % frameNr