I took 3 months off and didn't look at a computer when I was burnt out. When I was interviewing for jobs after my break I felt pretty good, but less than a year into my new job I'm right back where I started.
I do think it's important to work with a psychologist to understand what aspects of your work are making you burn out. Simply taking a break and then diving back into a similar environment is a recipe for failure.
Yeah one mistake I made was promising myself I would catch up on some personal software development things. I didn't end up doing many of them, but always felt a sense of stress that I should've been spending time on them.
I should really have just stayed away from my computer altogether, you made the right choice.
I do think it's important to work with a psychologist to understand what aspects of your work are making you burn out. Simply taking a break and then diving back into a similar environment is a recipe for failure.