public String evaluateScript(String code) { if (state.isRecordingPaused()) { return runtime.evaluate(code); } else { return script.getDebugger().evaluateScriptWhenPaused(code); } }
public void resume() { if (state.isRecordingPaused()) { runtime.startRecording(recorder); setState(State.RECORDING); } else { script.getDebugger().resume(); setState(State.PLAYING); } }