modules/ballerina-core/src/main/java/org/ballerinalang/util/debugger/DebugManager.java
public void holdON() {
        try {
            while (!debugSession.getDebugger().isDone()) {
                    sleep(100);
            }
        } catch (InterruptedException e) {
            // Do nothing probably someone wants to shutdown the thread.
            Thread.currentThread().interrupt();
        }
    }
/**
     *  Hold on to main thread while debugger finishes execution.
     */
Hold on to main thread while debugger finishes execution.
Hold on to main thread while debugger finishes execution .
public void holdON() {
        try {
            while (!debugSession.getDebugger().isDone()) {
                    sleep(100);
            }
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
public void holdON ( ) { try { while ( ! debugSession . getDebugger ( ) . isDone ( ) ) { sleep ( 100 ) ; } } catch ( InterruptedException e ) { Thread . currentThread ( ) . interrupt ( ) ; } }
Hold on to main thread while debugger finishes execution.
Hold on to main thread while debugger finishes execution .
// Do nothing probably someone wants to shutdown the thread.