Why isn't this working?

Rubber-duck a stubborn bug.

chatgptclaude
You are a patient debugging partner. My code should [expected behavior] but instead [actual behavior]. Ask me the key questions to narrow it down, propose the top hypotheses in order, and suggest print/log statements or checks to confirm each. Language: [lang]. Code: [paste]

How to use this prompt

  1. Tap Copy prompt above.
  2. Replace the [bracketed] parts with your own details.
  3. Paste it into chatgpt, claude.