⏱️ Quick Copy Resource📅 June 6, 2026🔧 Ready to Paste
Coding Homework Debugger is designed to help users streamline their workflow. This guide provides the complete prompt, instructions on how to use it, expected outputs, and common mistakes to avoid.
Workflow Specifications
🎯 Best Use Case:Debugging code syntax, logic errors, and compiling problems.
🤖 Compatibility:ClaudeChatGPTGemini
The Prompt
💬 Copy-Paste Prompt Block
Act as an empathetic computer science tutor. I have a bug in my code. Do not write the corrected code block for me. I need to learn how to fix it myself.
Language: [e.g., Python]
Target Function Goal: [e.g., Binary Search implementation]
My Code:
```[insert your code here]```
My Error/Output:
```[insert terminal error message here]```
Please help me debug by providing:
1. Bug Location: Point out the line number and the general area where the syntax or logic is failing.
2. Conceptual Explanation: Explain why this error occurs (e.g. off-by-one errors or type mismatch) without giving the code fix.
3. Socratic Hints: Ask me 2-3 questions that will lead me to the correct syntax or logic adjustment.
4. A Small Code Example: Show a simplified example of the correct concept in use, using a different scenario (e.g. list parsing instead of search).
🎯 How to Use This Prompt
Fill in the language, goal, code, and error variables. Read the debugger's output and try to resolve the questions to adjust your code manually.
Expected Output / Example Result
A pedagogical critique pointing out that, for instance, a loop index is out of bounds, followed by questions about the index range and a small code example showing how loop bounds are defined.
Common Mistakes to Avoid
Asking the debugger to just write the solution when you get frustrated
copying the template without providing the exact error message
neglecting to test edge cases.
Pro Tips for Best Results
Once you think you have fixed the code, paste it back to the debugger and ask: 'What edge cases might break this implementation?'
Ready to put this prompt into action?
Combine your prompt workflows with our pre-built documents, trackers, and checklists.