When stuck, explain the problem out loud. You can explain to a rubber duck, a colleague, or Claude.
The act of explaining forces you to articulate assumptions. You often discover the bug while explaining: "So this function takes an array and... wait, is it an array here?"
Explanation reveals gaps in your understanding. Those gaps often contain the bug.