How Do You Debug When There Is No Error Message?
Silent wrong behaviour is harder than a crash because nothing points anywhere, and it is where generated code fails most often.
Turning an error message into a fix, and what to include in the prompt so the answer is not a guess.
Silent wrong behaviour is harder than a crash because nothing points anywhere, and it is where generated code fails most often.
It will always produce an answer, which means an answer is not evidence that anything was diagnosed. There are ways to tell the difference.
The first suggestion addresses the most common cause of that symptom, which is a reasonable guess and frequently not your situation.
The difference between a useful answer and a plausible guess is almost entirely in what you pasted, and most people paste about a third of what they should.