You cannot permanently enable debug mode in Harry Potter and the Chamber of Secrets (PC) by changing a setting.
If somehow enabled, it wouldn't change the game itself—only provide internal observation/manipulation tools.
Detection: Look for a developer console or in-game visual indicators.
Warning: Modifying game files risks instability or system damage. Instead, consider mods (graphics, gameplay) or cheat codes (if available for this game). Always backup data first.