When I used to get stuck while writing, I would ask one of my friends for advice. This was an exercise in futility. I deliberately avoided telling him much about my story because I wanted his fresh opinion when it was all done, so he ended up trying to give me advice based on limited information.
But you know what? Nine times out of ten I got the answer I needed. It just usually didn’t come from him.
I find that the act of walking someone through your problem usually has the effect of making the answer obvious to you. Sometimes it’s a question they ask or an observation they make, but usually it’s in the course of laying it all out that the answer will spring into your mind.
There’s an element of learning by teaching in this. If you can explain the problem in such detail that someone unfamiliar with it can understand the situation, you’ll understand it even better yourself. It also forces you to go over all the little details you normally gloss over, and it’s in those that the answer usually lies.
The takeaway is that having people you can talk to when you hit a snag is vital. Not because they’ll give you the answer, but because they’re the catalyst that will allow you to lead yourself to it. Though sometimes they’ll just hand you the answer too, which is nice.