Bisect the bug
When you have no idea where it's going wrong.
Something goes wrong somewhere between <the start> and <the result>. I don't know where. Don't guess at a fix. Instead, give me a numbered list of checks that splits the path roughly in half each time — the fastest sequence to narrow down where the data stops being what I expect. For each check, tell me exactly what to add or run, and what result would point which way.
Guessing scales badly. Halving scales beautifully: ten steps narrows a thousand lines to one.