Systematic debugging approach that explains the root cause, not just the fix.
I have a bug and I need help debugging it. Let's approach this systematically. Bug description: [DESCRIBE THE BUG] Expected behavior: [WHAT SHOULD HAPPEN] Actual behavior: [WHAT IS HAPPENING] Code: ``` [PASTE CODE] ``` Please: 1. Form a hypothesis about the root cause 2. Explain your reasoning step by step 3. Suggest the minimal fix 4. Explain how to prevent this class of bug in the future