RALEIGH, N.C. -- Republican Governor Pat McCrory and Democratic Attorney General Roy Cooper sparred Tuesday night in their first and only scheduled debate before the November election.

The debate was held in Raleigh and NBC's Chuck Todd was the moderator.

When the one-hour debate first opened, it took only minutes before House Bill 2 came up.

"We need a good jobs-Governor, not a House Bill 2 Governor," said Cooper.

MCCrory responded by defending the law that limits protections for members of the LGBT community.

"If you are a man you are in the men's locker room or shower and if you are a woman you will go to the appropriate shower," said McCrory.

The most unusual question came when both candidates were asked where Caitlyn Jenner could go to the bathroom in Charlotte.

Cooper did not directly answer, saying instead, "We shouldn't be getting involved in these issues and House Bill 2, this is exactly what it does. It gets us involved in these issues."

McCrory responded to the same question saying, "If she is going to shower at a facility at UNC-Chapel Hill after running around the track, she is going to use the man's shower."

The two candidates differed on a number of issues from teacher pay to lower taxes.

McCrory continued to say that he supported Donald Trump, but said Trump needed to have his mouth washed out with soap, then adding so did Hillary Clinton, who McCrory said had told too many lies.

McCrory was asked why he signed a new body cam law that would initially have prevented CMPD from releasing the body cam and dash cam videos from the shooting death of Keith Scott.

"I know CNBC, CNN and Fox would love to show these videos. It helps their ratings, but the fact of the matter is we've got a criminal investigation going on right now," McCrory answered.

The law now requires that a judge order the release of any police videos, and Cooper said he had problems with how the law would work.

"The presumption should be it's public because the more transparency you have, the more mutual respect you will realize."

Both McCrory and Cooper acknowledged the victims of last week's flooding but said they agreed the debate had to go on because it was important that everyone get to hear where the candidates stand.