My personal path to recovery involved a complete redo of my entire life. I quit my job, moved to a new city. I took an entire month off and did nothing but stuff that was fun, (mainly programming :-) My new job is a boring corporate coder type job that requires very little of my attention. I also started dieting, quit smoking and took up running.
You can get better! It just takes time. Please be patient with yourself.
Believe it or not, even after everything that happened to me, I very nearly did it again! I began spending all of my spare time working on my side project, (my goal here is to eventually own my own company/startup). But at least this time when I started getting anxiety I realized, "wait a minute, I think I know why this is happening..." :-)