Debug output cleanup and configuration.