This is called Rubber Duck Debugging (no joke: http://en.wikipedia.org/wiki/Rubber_duck_debugging). It works astonishingly well.
Edit: I misread the comment. Thought you were explaining the problem to your dog. I'm wrong. Different thing. :)
Still, your way also works astonishingly well, too.