If you hit links we provide, we may receive compensation.

On his new HBO comedyCrashingdebuting Sunday at 10:30 p.m. As the comedian tells EW, it’s a story he knows all too well.

I found out the show was going to be canceled.

Crashing - Pete Holmes

Credit: Mary Cybulski/HBO

That’s what you think you’re supposed to do!

Let’s go pitch one!

SoCrashingbegan as a sketch series?HOLMES:Not really.

Let’s say we were canceled on Tuesday.

So I got in the car and was kind of frustrated.

I was like, “If you could do anything, what would you want to do?”

Would you say this is yourGirls?

It does have a similar vibe.HOLMES:I thought to myself, “What would be my show?”

And I’ve always kicked around the idea of doing a show about my actual divorce.

I thought that was great.HOLMES:I remember that day [I pitched him for real].

He was on the set forTrainwreck.

I woke up real, real early.

I woke up at like 5.

I wasn’t going to miss it.

I got there so early!

I knew Amy [Schumer] a little bit, but they’re not even there yet.

The way that Judd works is he was like, okay, you think you have an idea.

Go write it now, and I wrote it in two days or something.

That’s fun for me.

I think it’s funny, but it’s definitely sad for the character.

Oh, I got married when I was young.

I was married when I was 22, and then my wife cheated on me.

That’s all true.

The show is obviously a fictionalization of that.

Like, T.J. was a big help in healing his sad friend.

He took me to his movie set and we smoked pot for the first time.