Script errors log with debugMode