Commit 40336401 authored by hjk's avatar hjk
Browse files

debugger: fix typos in complex watcher handling

Reviewed-by: Friedemann Kleint
parent ce93a144
......@@ -1236,10 +1236,10 @@ class Dumper:
#warn("HANDLING WATCH %s, INAME: '%s'" % (exp, iname))
if exp.startswith("[") and exp.endswith("]"):
#warn("EVAL: EXP: %s" % exp)
with SubItem(d):
self.put('iname="%s",', iname)
self.put('name="%s",', escapedExp)
self.put('exp="%s",', escapedExp)
with SubItem(self):
self.put('iname="%s",' % iname)
self.put('name="%s",' % escapedExp)
self.put('exp="%s",' % escapedExp)
list = eval(exp)
......@@ -305,7 +305,8 @@ void testPeekAndPoke3()
s[i].a = i; // Break here. Expand s and s[0]. Step.
// Watcher Context: "Add New Watcher".
// Type ['s[%d].a' % i for i in range(5)]
// Expand it, continue stepping.
// Expand it, continue stepping. This should result in a list
// of five items containing the .a fields of s[0]..s[4].
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