void () { runPythonTest(new PyDebuggerTask("/debug", "test_return_values.py") { @Override public void before() { toggleBreakpoint(getScriptName(), 2); final PyDebuggerSettings debuggerSettings = PyDebuggerSettings.getInstance(); debuggerSettings.setWatchReturnValues(true); } @Override public void doFinally() { final PyDebuggerSettings debuggerSettings = PyDebuggerSettings.getInstance(); debuggerSettings.setWatchReturnValues(false); } @Override public void testing() throws Exception { waitForPause(); stepOver(); waitForPause(); eval(PyDebugValue.RETURN_VALUES_PREFIX + "['bar'][0]").hasValue("1"); stepOver(); waitForPause(); stepOver(); waitForPause(); eval(PyDebugValue.RETURN_VALUES_PREFIX + "['foo']").hasValue("33"); resume(); } @NotNull @Override public Set<String> getTags() { return ImmutableSet.of("-iron", "-python3.6"); } }); }