use of org.eclipse.che.ide.debug.DebuggerObserver in project che by eclipse.
the class AbstractDebugger method stepOut.
@Override
public void stepOut() {
if (isConnected()) {
for (DebuggerObserver observer : observers) {
observer.onPreStepOut();
}
removeCurrentLocation();
preserveDebuggerState();
StepOutActionDto action = dtoFactory.createDto(StepOutActionDto.class);
action.setType(Action.TYPE.STEP_OUT);
Promise<Void> promise = service.stepOut(debugSessionDto.getId(), action);
promise.catchError(new Operation<PromiseError>() {
@Override
public void apply(PromiseError arg) throws OperationException {
Log.error(AbstractDebugger.class, arg.getCause());
}
});
}
}
Aggregations