I agree with the distracting yourself advice. Although it is difficult to, say, get out and exercise when you can barely leave your bed let alone your house. What I've found helpful (though not entirely foolproof) is to find even one thing that gives you the same feeling of safety and security that food gives you. Even if it's an arsenal of a few favourite movies (for depression I gravitate towards superhero movies...), and if you want to binge, lie in bed and stare blankly at your favourite movie. It might not be much, but the dialogue will catch your brain out a bit and distract you if not from food, then from any cacophony you have going on inside your head.
I also like to have a depressed playlist on my phone, so that if I'm feeling up to going out I put that on and head out for a walk, no matter how short. It's not even about exercise, it's not punishment, or "making up for" something you've eaten, it's just as a technique for distracting your mind long enough to shake some of the cobwebs loose.
I find that getting into video games has also helped significantly with my depression. I seem to remember a study showing that, essentially, the sense of focus and achievement you get from completing tasks in a game stimulates the same parts of the brain that are activated in real-life achievements, which may feel out of reach when you're depressed. Plus, it takes your mind off things for a while.
Also, posting on here. It's like journaling, only with an understanding ear at the other end.
I did actually write up a list once, of all the emotions that went through my head as I went from a trigger event into a pit of black depression. Who knows how I managed that, but once I felt better, I analysed it a lot, and that's how I found ways to interrupt the process. A bit like "my boss was nasty > I feel worthless > I remember my failures > I think about how my life could be better if I hadn't failed > I compare that ideal with how I'm feeling now > nothing is worth it > I'm a piece of **** because everyone else can get it together, but not me > I need comfort > I need food > I feel guilty > I have no willpower > I'll never amount to anything > it's all pointless" Not as clear-cut or simplistic as that, but if you can find the antidote to even one stage of that downward spiral, and use it at the appropriate point, you can go a long way. Even if you've got to the binge part, try to knock out the guilt part to stop the cycle perpetuating itself.
And I find that sometimes lying in bed and going to sleep is the only option for giving your subconscious the chance to process what you're feeling.
I wish I could be of more help, I hope you find things that work for you, these are just things that often work for me. And I hope you begin to feel better very soon