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