Technology, IMO it can only be taught by example. By starting with something that doesn't work and showing the thought process, or guiding you through it. Watching videos of people troubleshooting and fixing things should also help.

It may also be taught as part of computer science classes because it's exactly the same skill as debugging software, just applied IRL.