Added debug script to run in bin/setenv.sh.