void () { runPythonTest(new PyDebuggerTask("/debug", "test4.py") { @Override public void before() { setWaitForTermination(false); toggleBreakpoints(1); } @Override public void testing() throws InterruptedException { waitForPause(); String expressionOne = """ print('one') print('two') print('three') """; consoleExec(expressionOne); waitForOutput("one"); waitForOutput("two"); waitForOutput("three"); String expressionTwo = """ [i for i in range(10)] """; consoleExec(expressionTwo); waitForOutput("[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]"); resume(); } }); }