modules/ballerina-core/src/main/java/org/ballerinalang/util/debugger/DebugManager.java
public void waitTillClientConnect() {
        this.waitingForClient = true;
        //suspend the current thread till client connects.
        try {
            executionSem.acquire();
        } catch (InterruptedException e) {
            //todo proper error handling
        }
    }
/**
     *  Wait till client connection establish.
     */
Wait till client connection establish.
Wait till client connection establish .
public void waitTillClientConnect() {
        this.waitingForClient = true;
        try {
            executionSem.acquire();
        } catch (InterruptedException e) {
        }
    }
public void waitTillClientConnect ( ) { this . waitingForClient = true ; try { executionSem . acquire ( ) ; } catch ( InterruptedException e ) { } }
Wait till client connection establish.
Wait till client connection establish .
//suspend the current thread till client connects. //todo proper error handling