Debugging ShiftLeft Ocular Scripts with JDB

export JAVA_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,address=8002,server=y,suspend=n'
./ocular.sh

The first line of output is Listening for transport dt_socket at address: 8002. You can now connect to remote debug with your favorite debugger, e.g. Intellij or jdb command line.