Encouraging kids to learn CS?

I’ve seen many math majors over the years get into programming. At least half of software developing is learning to debug. Logical sharp minds can do that; even many CS majors don’t seem be able to think logically enough to burrow down into a problem and solve it - instead they keep trying for the quick, home run fix.