Debug cleaning