Rework debug config.