Debra Messing, Law & Order: SVU Debra Messing, Law & Order: SVU

For her upcoming Law & Order: SVU guest role, Debra Messing is branching out from her Will & Grace roots and getting into her inner... Chris Hansen?

"I found out that Debra Messing was interested in coming onto the show. She and Mariska Hargitay are good friends. ... She didn't really know  what she wanted to do and I didn't really have a story for her," associate producer and consultant Judy McCreary says. "All of a sudden it clicked, and I said 'What if we did a take on Chris Hansen, who hosts To Catch a Predator? And that's how the show was born."

Watch more videos of Law & Order: SVU

In the episode, airing Wednesday at 10/9c on NBC, Messing plays a journalist who Benson (Hargitay) must rescue when she's threatened by a stalker from a past sting.

Watch the video below: