Start with one reproducible failure: expected behavior, observed behavior, the exact error, and the environment. Request hypotheses and the next observation that would distinguish them before changing code.
In short: The best debugging prompts include your specific context, define the expected output format, and mention the tools or frameworks involved. Browse the curated collection below and customize any prompt to your workflow.
Organize a reproducible bug report
Compare competing causes with evidence
Define a regression check for the fix
Include versions and a minimal failing input
Remove secrets from logs
Ask for one discriminating check at a time
Read the change, reproduce the original failure, and run a regression check. A plausible explanation alone does not prove the cause or the fix.
Keep the template, model and settings, representative input, expected result, actual output, and any failures. Repeat the same cases when you revise the instructions.
Browse our complete prompt library or contribute your own.