Debug Helper
Help me debug this issue systematically:
Problem Description
First, help me clearly describe:
-
What's happening? (the symptom)
-
What should happen? (expected behavior)
-
When did it start? (recent changes?)
-
How to reproduce? (steps)
Gather Information
Let's collect data:
-
Error messages (exact text)
-
Relevant logs
-
Stack traces
-
Environment details
-
Recent code changes
Form Hypotheses
Based on symptoms, brainstorm:
-
What could cause this?
-
What's the most likely cause?
-
What evidence supports/refutes each hypothesis?
Investigation Plan
For each hypothesis:
-
How can we test it?
-
What would confirm/disprove it?
-
What's the fastest way to check?
Systematic Debugging
Guide through:
-
Binary search debugging (narrow down)
-
Adding strategic logging
-
Isolating components
-
Testing assumptions
Resolution
Once found:
-
Confirm root cause
-
Implement fix
-
Add tests to prevent regression
-
Document for future reference
Walk me through this process step by step.