It's really quite interesting how things change. Six months ago I was really questioning if I still wanted to be a programmer. Having worked in the same place for 16 years, and still doing exactly the same job, my career hadn't progressed. I was seriously looking at burnout, just wanting to disappear from it all.
Then. Things change. Three months ago (after a six week break) I started with a new company, and my whole outlook changed. I have a renewed interest in programming (in particular with TypeScript and React.js) and constantly looking for more information.
I have subscribed to a number of programming podcasts that I listen to on my travels. My general web browsing is taken up by checking out Hacker News and /r/programming. The books I read are programming related (a lot of learning the techniques that I have missed over the last 16 years like Test Driven Development).
I haven't felt this good about programming since by university days. It truly is amazing how a toxic work environment can sneak up on you without realising. For the first time in my career, I feel like I have somewhere to head, a lot of oportunity to progress. Having a very supportive boss is great too, both in the professional environment, but also very interested and keen on what I'm doing outside of work too.
I guess what I'm saying is, at the end of the day, "Better the devil you know" can actually be very dangerous thinking, and there is a time to move on. The unknown is scary, but also exciting and can bring back the passion in things you used to love.