When explaining code to the class, project your code and use a tablet to draw on top of it. Ask students for debugging suggestions to make them more comfortable finding bugs and to show them that all programmers, even you, make mistakes.
Help students monitor their emotional experience to know when they should take a break from writing code to maximize learning and student attitudes.
When students are working on projects, especially open-ended ones, resist the urge to intervene. Don’t do the job for them!
Have students keep a “bug collection” in a journal so they can more easily recognize and eliminate bugs in the future.
As a debugging technique, have students write out their programs in their spoken language and compare their description to the code in order to find bugs.