Teaching kids to debug is teaching them to think. Break the problem down. Check assumptions. Test one thing at a time.