Make debug_mode a formal concept.