I'm a comfort eater. I get some bad news, difficult work situation, whatever, I start to feel hungry. My current craving is marshmallows. Goodness knows how I'd deal with a serious trauma.
I've always been physically active, but when I started really getting serious about getting fit, the trainer at the gym said "You can't out train a bad diet."
I use my FitBit app to track my food - when I started doing this, I weighed everything, and read labels.
I started being accountable to myself - and I started to look at what I ate and whether the 800 calories of one bag of sweets was worth being half of what I ate that day. When I could eat a LOT more of, say, a 3 egg omelette with loads of tomatoes, spinach & cheese.
That really helped me to track my feelings in relation to my hunger cravings -
I now recognise the triggers - I don't beat myself up: I just notice the cravings, and then I eat!
BUt I eat something nurturing - even a chunk of cheese is better than grabbing a bag of marshmallows!
But I don't beat myself up - I recognise the craving for what it is, and track it back to the difficult email, or the bad news or whatever. And I check whether I've done some proper exercise that day - yoga or running or something, for about an hour.
Good luck OP