Commit 33fc9e20 authored by Christian Stenger's avatar Christian Stenger Committed by hjk
Browse files

Debugger: Handle anonymous function arguments

Change-Id: I1caa0ace47d59ea182470795634c00ef5fd7c345
Reviewed-by: default avatarhjk <>
parent d76ba6c9
......@@ -1473,6 +1473,11 @@ class Dumper:
"__doc__", "__loader__", "__cached__", "__the_dumper__"):
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment