Debra Messing and Will Chase are no longer dating each other.

Messing and Chase, who both starred in NBC's now-canceled musical drama "Smash," have recently split, a rep for the actress confirmed to Us Weekly, which was first to report the news.

"Debra Messing and Will Chase have ended their two-and-a-half year relationship," the rep said, "but remain close friends."

A source told E! News that distance played a huge part in their decision to end their relationship, with Messing working on her NBC show "The Mysteries of Laura" and Chase on "Nashville."

"The problems started when Will went from a recurring to a regular role on 'Nashville.' He's had to spend a lot more time down there," the tipster dished. "Debra, meanwhile, shoots her show all week here in NYC. It's sad because they really care about each other so much."

"They didn't want this to happen," the source revealed. "But at the end of the day, their schedules and the distance truly got to be too much."

After the breakup, another insider told E! News that aside from her new show,  the Primetime Emmy-winning actress is also focusing on her 10-year-old son, Roman.

"She is working long hours so her main priority when she has free time is to be with her son," the source said.

Messing was previously married to writer-producer Daniel Zelman, the father of her son. She and Zelman were married from 2001 to 2011, according to the Los Angeles Times.

Chase, on the other hand, has two daughters, Daisy and Gracie, with former wife Lori Chase. The two got married in 1998 and amicably divorced in 2008. He then tied the knot with Stephanie Gibson in 2009 and filed for divorce in 2012.

Meanwhile, Messing recently opened up to E! News about why she signed on as the lead role on "The Mysteries Of Laura."

"I'm always scared of working too hard and being a part of something that becomes something that I don't want it to become, but I really just felt really great about this from the very first minute I read it," she said.

"That was the same thing with reading the 'Will and Grace' script," she explained. "I read it and I felt like, 'OK, these characters come right off the page and the voice of the show is clear.' To me, it was worth the risk."