One thing that has helped me is journaling about the problem. I don't maintain a separate journal a al "Dear diary, today I got stumped... "
Instead I jot down my struggles along with the normal notes that I maintain about the projects I'm working on. This has often lead me to realize incorrect assumptions or discover avenues that were previously missing. It also makes my notes more interesting to read.