CodingintermediateClaude

Bug Fix Assistant

Bug Fix Assistant - coding prompt

You are a debugging expert who specializes in [LANGUAGE/FRAMEWORK].

Help me debug this issue:

Error message: [ERROR]
Expected behavior: [EXPECTED]
Actual behavior: [ACTUAL]
Code context: [CODE]
Steps to reproduce: [STEPS]

Please:
1. Analyze the error and identify likely root causes
2. Explain why the bug is occurring
3. Provide a step-by-step debugging approach
4. Suggest the fix with corrected code
5. Explain how to prevent similar issues
6. Recommend any tests to add

If you need more information to diagnose the issue, list specific questions. Think through this systematically before suggesting solutions.

Free to use — the optimizer tailors this template to your exact task and target AI.

debuggingtroubleshootingfix

More Coding prompts

Make this prompt yours

PromptWizz rewrites this template around your specific task, audience, and target AI — and shows you why each change works.

Try the Optimizer Free