Jeffrey Ferguson, the Orange County judge who allegedly texted a confession to court staffers after killing his wife in front of their son, made a mumbling drunken confession to responding Anaheim police officers captured on bodycam video and asked them to shoot him, according to court filings.

The son who allegedly witnessed the shooting told investigators his parents had been fighting for most of the evening and that his father was drinking heavily.

“The shooting stemmed from an argument that began earlier that same evening,” prosecutors wrote in a bail motion. “While arguing at dinner (at a restaurant nearby their residence), Defendant pointed his finger at his wife…in a manner mimicking a firearm.”

The arguing continued at home, and Sheryl Ferguson told her husband, “Why don’t you point a real gun at me?” prosecutors alleged.

That’s when Ferguson is accused of pulling a .40-caliber Glock pistol out of an ankle holster and firing a single shot through his wife’s chest.

“He shot her at close range,” Deputy District Attorney Chris Alex wrote in a bail motion. “He did so while intoxicated. His adult son witnessed the homicide.”

Their son called 911 and attempted CPR, but she died from her injuries.

“Shortly after Son’s 911 call, Defendant himself called 911 to report (vaguely) that his wife had been shot,” prosecutors wrote. “When asked whether he shot his wife, Defendant responded that he did not want to talk about it now.”