What you describe is most often called something like "Rubber duck debugging", https://en.wikipedia.org/wiki/Rubber_duck_debugging . I learned it as "talking to the wall" debugging.
One example I can remember is my dad coming out and holding up a pen, and asking me how I would view all sides of the pen without moving my head. I said, "I'd spin the pen around," and my dad yelled, "of course!", threw a twenty at me and ran back to his office.