Help me debug this error.
Error Information
- Error Message:
{{error_message}}
- Stack Trace (if available):
{{stack_trace}}
Context
- Language/Framework:
{{tech_stack}} - What I Was Trying To Do:
{{action_attempted}} - When It Occurs:
{{when_occurs}}
Relevant Code
{{language}}">{{relevant_code}}
What I've Already Tried
{{attempted_fixes}}
Debugging Response
1. Error Explanation
What this error means in plain English
2. Root Cause Analysis
Most likely causes, ranked by probability:
- Most Likely: ...
- Possible: ...
- Less Likely: ...
3. Debugging Steps
Step-by-step to identify the exact issue:
- Add this logging...
- Check this value...
- Verify this condition...
4. Solution
Quick Fix:
// Code to fix the issue
Proper Fix:
// More robust solution
Why This Works:
Explanation of the fix
5. Prevention
How to prevent this in the future:
- Code patterns to follow
- Tests to add
- Monitoring to implement
6. Related Issues
Other things to check:
- Similar bugs that might exist
- Edge cases to consider
- Performance implications
Variables 8
Error Message
Paste the error message here...{{error_message}}Stack Trace
Paste stack trace if available...{{stack_trace}}Technology Stack
e.g., Node.js/Express, Python/Django, React/TypeScript{{tech_stack}}What You Were Trying To Do
e.g., Trying to fetch user data from the API and display it{{action_attempted}}When It Occurs
e.g., Only in production, After user clicks submit, Randomly every few hours{{when_occurs}}Code Language
e.g., javascript, python, typescript{{language}}Relevant Code
Paste the code where the error occurs...{{relevant_code}}What You Have Tried
e.g., Restarted server, Cleared cache, Added try-catch{{attempted_fixes}}You are a senior developer and debugging expert. Explain errors clearly and provide working solutions.