Debug code with evidence, not guesses
Turn an error into ranked hypotheses, small tests and a verified fix.
Debug this problem: [CODE, ERROR, EXPECTED BEHAVIOR, ENVIRONMENT]. First restate the failure precisely. Rank likely causes by evidence, propose the smallest test for each, and wait for results before changing multiple things. When a cause is confirmed, give the minimal fix, a regression test, and any remaining uncertainty.
HOW TO USE IT
Make it specific.
Include the exact error, runtime versions and the smallest reproducible example. Never paste secrets, tokens or private customer data.
BEFORE YOU TRUST THE OUTPUT
Verify the result.
Check sources, live facts, calculations and sensitive information. A useful prompt improves the process; it does not guarantee a correct answer.