How to teach debugging?

https://i.imgur.com/Fnh80HC.png

This is from Masterminds of programming. Person sharing the story and the perspective is Thomas_E._Kurtz Thomas Eugene Kurtz (February 22, 1928 – November 12, 2024) was an American computer scientist and educator. A Dartmouth professor of mathematics, he and colleague John G. Kemeny are best known for co-developing the BASIC programming language and the Dartmouth Time-Sharing System in 1963 and 1964. These innovations made computing more accessible by simplifying programming for non-experts and allowing multiple users to share a single computer, transforming how computers were used in education and research.

https://i.imgur.com/S2mnVEI.png