Problem solvers are far more in demand than ever, and that won't go away till we get strong AI (at which point the problem won't be offshore, but inCPU).
I don't mean 'engineers' like code pigs or most IT drones (not a dig at IT, really good IT people are engineers too). You just have to be someone who can take all information about the problem, including the constraints, then design and implement the best solution given the constraints - that means time, budget, reliability, support needs, end of life, etc.
The trouble is that most people can't do that, which is why it's in high demand. Risk assessment and mitigation are crucial and mostly untaught skills. Most people will just do what you tell them to, or take their favorite hammer and chainsaw and use it on everything in disregard of practical requirements. Most offshore 'engineers' fall into this category as well, which is one reason engineering outsourcing has such a bad stink among those who jumped on the bandwagon in the 2000s.
Which leads to the other problem - it's nigh impossible to learn except by doing. Normal path is to get an engineering degree, then join an engineering firm and work on actual products - though if you join a big boring place like HP you still may end up just learning to be a code pig unless you're lucky enough to end up in one of their very few interesting divisions (memristors!). Obviously this is long term project, high expense. High risk till you get the degree, then fairly low risk.
The other option is to just start making things. Make 'products' for yourself and try to finish them - i.e. make it something you could sell, even if you don't. This is easier than ever now thanks to explosion of low cost boards, motor controllers, cameras, drones... Get your hands on. Someone who can code, breadboard, solder and do servo control is a highly contested prize.
The bad news is you may find you're just not suited for it. In which case your best hope is probably to find an avoided niche like COBOL.
The good news is that if you're suited for it it's ridiculously fun and rewarding. Some days are still gonna suck, but generally you're solving interesting problems and making real things and people are using the things you made (this is THE BEST). Usually not as lucrative as banking or politics, but making decent money and helping rather than being scum of the earth (unless you go to work for Facebook, *zing*) is worth a lot of peace of mind.