โ Back to the prompt library
Coding
Bug Hunter
A second pair of eyes on your broken code.
The prompt
Find the bug in this code. The expected behavior: [EXPECTED]. What's actually happening: [ACTUAL]. Give me: the most likely cause ranked by probability (top 3), the exact fix for the most likely one, and how to verify the fix. If you need more info, tell me exactly what to check. Code: [PASTE CODE]
Run it in your AI: ChatGPT ยท Claude ยท Perplexity
Fill in these parts
[EXPECTED][ACTUAL][PASTE CODE]
How to use it
Replace every [BRACKETED] part with your own details, then paste the result into ChatGPT, Claude, Gemini, or any AI chat tool โ or run it right on WantPrompt with the built-in free AI. The more specific your replacements, the better the answer.
Embed this prompt on your site
Related prompts
- Code Explainer โ Understand any code, no matter how cryptic.
- Regex Wizard โ Regular expressions without the headache.
- SQL Query Builder โ Describe what you want, get working SQL.
Want 99 more like this? The full library is free, no signup.
Browse all 100 prompts โ