@Override public Activation<?> next() { nextActivation = delegatedIterator.next(); for (IDebuggerTargetAgent listener : agents) { listener.activationFiring(nextActivation); } if (nextActivation != null && (hasBreakpoint(nextActivation) || action == DebuggerActions.Step)) { for (IDebuggerTargetAgent listener : agents) { listener.suspended(); } while (!actionSet) { try { Thread.sleep(25); } catch (InterruptedException e) { ViatraQueryLoggingUtil.getDefaultLogger().error(e.getMessage(), e); } } actionSet = false; } return nextActivation; }