modules/ballerina-core/src/main/java/org/ballerinalang/bre/nonblocking/debugger/BLangExecutionDebugger.java
private synchronized void tryNext(AbstractStatement statement) {
        if (statement instanceof CommentStmt || stepOutFromCallableUnit) {
            statement.accept(this);
        } else if (stepInToStatement || positionHashMap.containsKey(statement.getNodeLocation().toString()) ||
                statement == nextStep) {
            currentHaltNode = statement;
            stepOutFromCallableUnit = false;
            stepInToStatement = false;
            nextStep = null;
            next = null;
            if (observer != null) {
                observer.notifyHalt(getBreakPointInfo());
            }
        } else {
            statement.accept(this);
        }
    }
/**
     * Try to execute given statement.
     *
     * @param statement to be executed.
     */
Try to execute given statement.
@param statement to be executed.
Try to execute given statement . @param statement to be executed .
private synchronized void tryNext(AbstractStatement statement) {
        if (statement instanceof CommentStmt || stepOutFromCallableUnit) {
            statement.accept(this);
        } else if (stepInToStatement || positionHashMap.containsKey(statement.getNodeLocation().toString()) ||
                statement == nextStep) {
            currentHaltNode = statement;
            stepOutFromCallableUnit = false;
            stepInToStatement = false;
            nextStep = null;
            next = null;
            if (observer != null) {
                observer.notifyHalt(getBreakPointInfo());
            }
        } else {
            statement.accept(this);
        }
    }
private synchronized void tryNext ( AbstractStatement statement ) { if ( statement instanceof CommentStmt || stepOutFromCallableUnit ) { statement . accept ( this ) ; } else if ( stepInToStatement || positionHashMap . containsKey ( statement . getNodeLocation ( ) . toString ( ) ) || statement == nextStep ) { currentHaltNode = statement ; stepOutFromCallableUnit = false ; stepInToStatement = false ; nextStep = null ; next = null ; if ( observer != null ) { observer . notifyHalt ( getBreakPointInfo ( ) ) ; } } else { statement . accept ( this ) ; } }
Try to execute given statement.
Try to execute given statement .