Debra Messing has ''fond memories'' of junk food.

The former 'Will and Grace' star, who recently lost 20 pounds, struggles not to give into her cravings for greasy treats, but is too busy to binge.

The 45-year-old star told PEOPLE.com: ''I miss everything. I loved burgers and fries and pizzas - the greasiest food. Literally if I could, I would subsist on all of that.''

She added: ''Unfortunately, working 17 hours a day, you can't subsist [on that] and be a good employee. I have fond memories of them.''

'The Mysteries of Laura' star embarked on a healthier diet following her split from Daniel Zelman, with whom she has son Roman, 10, in June 2012 after 10 years of marriage.

She explained: ''It's really just about trying to stay disciplined, which has been a problem for me in the past, but so far so good. [I'm} eating really, really well.''

The actress, who started dating her 'Smash' co-star Will Chase shortly after splitting from Daniel, eats lots of vegetables, as they make her feel more energetic.

She said: ''That was the goal from the beginning. It was to try to figure out how to be a working mom and to do everything that a working mom has to do in a day and to do it with energy and the optimism and the focus it needs. I just was tired of being tired.''