I think about leaving programming every day. I love programming, but I'm not sure I enjoy software development as a career. I enjoy coding and understanding how computer systems work, but I don't care for the constant changes in tools and techniques in certain domains of development. I'd rather practise with and improve my existing knowledge of a subject, instead of constantly playing catch-up with someone else's too…
As I've mentioned before I own a gym business (multiple locations) with my wife and some other business partners. Part of the purchase process was financial disclosures of everyone so we all know what each other makes on paper, what we actually take home, household wealth and assets, etc.
I'm 30, younger than my business partners by multiple decades, and am the only one not in a strictly management position. Two of the partners are PEs and I make more than anyone else.
I say this not to brag but only to point out that it takes a lot to leave programming simply because the money isn't there is a lot of other professions. I almost went into civil engineering and I'm glad I didn't, because apparently I would've had to bust my ass to make it into management only to be 20 years older and making less money to boot.