@Override protected void onInputValue(VirtualFrame frame, EventContext inputContext, int inputIndex, Object inputValue) { if (stepping.get() && hasExpressionElement) { SteppingStrategy steppingStrategy = getSteppingStrategy(Thread.currentThread()); if (steppingStrategy != null && steppingStrategy.isCollectingInputValues()) { saveInputValue(frame, inputIndex, inputValue); } } }
@Override protected void onInputValue(VirtualFrame frame, EventContext inputContext, int inputIndex, Object inputValue) { if (stepping.get() && hasExpressionElement) { SteppingStrategy steppingStrategy = getSteppingStrategy(Thread.currentThread()); if (steppingStrategy != null && steppingStrategy.isCollectingInputValues()) { saveInputValue(frame, inputIndex, inputValue); } } }
@Override protected Object onUnwind(VirtualFrame frame, Object info) { Object ret = super.onUnwind(frame, info); if (ret != null) { return ret; } if (stepping.get()) { return doUnwind(frame.materialize()); } else { return null; } }
@Override protected void onReturnExceptional(VirtualFrame frame, Throwable exception) { if (stepping.get()) { doStepAfter(frame.materialize(), exception); } }
@Override protected void onEnter(VirtualFrame frame) { if (stepping.get()) { doStepBefore(frame.materialize()); } }
@Override public void onReturnExceptional(VirtualFrame frame, Throwable exception) { if (stepping.get()) { doReturn(frame.materialize(), null); } }
/** * Test whether breakpoints are active in this session. Breakpoints do not break execution when * not active. * * @since 0.24 */ public boolean isBreakpointsActive() { return breakpointsActive.get(); }
@Override public void onReturnExceptional(VirtualFrame frame, Throwable exception) { if (stepping.get()) { doReturn(); } }
@Override protected void onReturnValue(VirtualFrame frame, Object result) { if (stepping.get()) { Object newResult = doStepAfter(frame.materialize(), result); if (newResult != result) { CompilerDirectives.transferToInterpreter(); throw getContext().createUnwind(new ChangedReturnInfo(newResult)); } } }
@Override public void onReturnExceptional(VirtualFrame frame, Throwable exception) { if (stepping.get()) { doReturn(); } }
@Override protected void onEnter(VirtualFrame frame) { if (stepping.get()) { doEnter(); } }
@Override protected void onReturnValue(VirtualFrame frame, Object result) { if (stepping.get()) { doStepAfter(frame.materialize(), result); } }
void resetReportedException() { if (haveReportedExceptions.get()) { doResetReportedException(); } }
@Override public void onReturnValue(VirtualFrame frame, Object result) { if (stepping.get()) { doReturn(frame.materialize(), result); } }
@Override protected void onReturnExceptional(VirtualFrame frame, Throwable exception) { if (stepping.get()) { doStepAfter(frame.materialize(), exception); } }
@Override protected void onEnter(VirtualFrame frame) { if (stepping.get()) { doEnter(); if (hasRootElement) { super.onEnter(frame); } } }
@Override protected Object onUnwind(VirtualFrame frame, Object info) { if (stepping.get()) { return doUnwind(frame.materialize()); } else { return null; } }
@Override public void onReturnValue(VirtualFrame frame, Object result) { if (stepping.get()) { doReturn(); } }
@Override public void onReturnValue(VirtualFrame frame, Object result) { if (stepping.get()) { doReturn(frame.materialize(), result); } }
@Override protected void onEnter(VirtualFrame frame) { if (stepping.get()) { doStepBefore(frame.materialize()); } }