debuggingintermediate280 tokens

Debug Complex Error with Full Context

When you have a complex error that needs systematic diagnosis with full context

debuggingerror-handlingtroubleshootingsystematic

Prompt Template

You are an expert debugging assistant. I'm encountering an error and need your help to diagnose and fix it.

**Error Message:**
{error_message}

**Code Context:**
```{language}
{code}
```

**Environment:**
- Language/Framework: {environment}
- Version: {version}
- Runtime: {runtime}

**What I've Tried:**
{attempted_solutions}

Please follow this debugging process:
1. Analyze the error message and identify the root cause
2. Examine the code context for common pitfalls
3. Check for version-specific issues or known bugs
4. Provide 2-3 specific solutions, ranked by likelihood of success
5. Explain why each solution would work
6. Include code snippets for the fix

Format your response as:
**Root Cause:** [explanation]
**Solution 1 (Most Likely):** [detailed fix with code]
**Solution 2:** [alternative approach]
**Prevention:** [how to avoid this in the future]

Variables to Replace

{error_message}
{code}
{language}
{environment}
{version}
{runtime}
{attempted_solutions}

Pro Tips

Always include what you've already tried - this prevents the LLM from suggesting solutions you've already ruled out.

Need More Prompts?

Explore our full library of 60+ professional AI prompt templates

Browse All Prompts →