Error Debugging Assistant

MR
@Mike Rodriguez
4 days ago
Fork

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:

  1. Most Likely: ...
  2. Possible: ...
  3. Less Likely: ...

3. Debugging Steps

Step-by-step to identify the exact issue:

  1. Add this logging...
  2. Check this value...
  3. 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 {{error_message}}
Paste the error message here...
Stack Trace {{stack_trace}}
Paste stack trace if available...
Technology Stack {{tech_stack}}
e.g., Node.js/Express, Python/Django, React/TypeScript
What You Were Trying To Do {{action_attempted}}
e.g., Trying to fetch user data from the API and display it
When It Occurs {{when_occurs}}
e.g., Only in production, After user clicks submit, Randomly every few hours
Code Language {{language}}
e.g., javascript, python, typescript
Relevant Code {{relevant_code}}
Paste the code where the error occurs...
What You Have Tried {{attempted_fixes}}
e.g., Restarted server, Cleared cache, Added try-catch