forked from qt-creator/qt-creator
Debugger: Handle anonymous function arguments
Change-Id: I1caa0ace47d59ea182470795634c00ef5fd7c345 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user