Phoebe Waller-Bridge is in a lot of pain, but it hurts so good, she promises.

“I find writing really, really hard and really painful, but I’d like to say just honestly from the bottom of my heart that the reason that I do it is this,” she said onstage at the Emmys Sunday night, giving a sly nod to the statuette she’d just received for best writing in a comedy series for “Fleabag.”

That was her first award during what would become a breakout night for Waller-Bridge, who also starred in the series about the unraveling of a sex-obsessed and grief-stricken 20-something woman.

“It’s just really wonderful to know — and reassuring — that a dirty, pervy, angry, messed up woman can make it to the Emmys,” she said.