rubber duck debugging

Etymology
From a story in the book  (1999).

Noun

 * 1)  The practice in which a programmer attempts to solve a bug by explaining their code to an inanimate object, such as a rubber duck.