public void setupDebugFile() throws IOException {
        if(debug) {
            cleanLog();
            
            FileWriter write = new FileWriter(System.getProperty("user.dir") + "/" + debugFile + ".txt", true);
            PrintWriter print_line = new PrintWriter(write);
            
            print_line.printf("TEMPLATE DEBUG FILE:" + "%n" + "====================" + "%n");
            
            print_line.close();
        }
    }