AI Tools & Generation
Debug My Code
Step-by-step debugging guidance
The prompt
I have a bug in my code. Walk me through debugging it step by step. First, help me isolate where the problem is occurring. Then explain what the code is doing versus what I expect it to do. Finally, suggest the fix and explain why it works.
How to use it
Copy the prompt, paste it into ChatGPT, Claude, Gemini or Perplexity, and replace anything in brackets with your own details. The more context you add about your situation, the better the answer.
- debugging
- code
- programming
