formating debug messages