Let a real error guide the next step
When something breaks, I read the actual error message closely instead of guessing at what went wrong. A real error usually points at the exact spot to look, if you slow down enough to read it.
It's tempting to describe the problem from memory and move on, but the error itself is often more precise than your recollection of what happened. Reading it carefully, and copying the exact wording into your next question, gets a coding session to the actual cause much faster than a vague description ever will. This one habit alone cuts a lot of wasted back and forth.
Try this today: the next time something fails, copy the exact error text word for word and hand that over instead of describing the problem from memory.