void () { runPythonTest(new PyDebuggerTask("/debug", "test2.py") { @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 6); setWaitForTermination(false); getRunConfiguration().setShowCommandLineAfterwards(true); } @Override public void testing() throws Exception { waitForPause(); eval("z").hasValue("1"); resume(); consoleExec("z"); waitForOutput("2"); } @Override public void doFinally() { getRunConfiguration().setShowCommandLineAfterwards(false); } }); }