formatting debug messages