void () { runPythonTest(new PyDebuggerTask("/debug", "test_set_value_locals_globals.py") { @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 5); toggleBreakpoint(getFilePath(getScriptName()), 9); } @Override public void testing() throws Exception { waitForPause(); List<PyDebugValue> frameVariables = loadFrame(); PyDebugValue var = findDebugValueByName(frameVariables, "lst"); List<XValue> children = XDebuggerTestUtil.collectChildren(var); PyDebugValue one = (PyDebugValue)children.get(0); eval("lst[0]").hasValue("'a'"); myDebugProcess.changeVariable(one, "'change'"); eval("lst[0]").hasValue("'change'"); resume(); waitForPause(); eval("lst").hasValue("[1, 2, 3]"); } }); }