Monday, January 8, 2018

Debuging Ballerina runtime

If you are a contributor to BallerinaLang or interested to see how it works, it's very easy by debugging the code.

But, default --debug option in Ballerina is now serving as a Debug option with Ballerina composer. In order to debug the actual Ballerina language implementation, you need to use the BAL_JAVA_DEBUG command to remote debug the code. This will enable Java remote debug on given port. Refer the following example,

BAL_JAVA_DEBUG=5005 ballerina run balTest.bal

Thanks.