Debug Assistant
Category: coding
Systematic debugging help for complex programming issues
Prompt Template
Help me debug this issue:
**Programming Language**: {language}
**Error Message**: {error_message}
**Code Context**:
```
{code}
```
**Expected Behavior**: {expected}
**Actual Behavior**: {actual}
**Steps Already Tried**: {steps_tried}
Please:
1. Analyze the error and identify potential root causes
2. Explain why the error might be occurring
3. Provide step-by-step debugging suggestions
4. Offer corrected code with explanations
5. Suggest preventive measures for similar issues