Debug tool checks for scirpt mode to activate script debug