“So while de Blasio is taking vacations, I’m ready to do the work for the people of New York,” he said.

Assemblyman Ron Kim (D-Queens) was even harder on de Blasio.

“I think he’s completely delusional,” Kim said, ripping into the state of the city’s schools, subways and housing. “He should apologize to New York City first for the last six-and-a-half years, and then maybe, maybe, if he does something positive for the next two years, next year, maybe we can think about him possibly running for mayor. But at this point, come back to us, mayor. We need you here.”

Councilman Jumaane Williams said de Blasio needed to get his own house in order.

“If you can’t get home fixed, if you can’t deal with the issues of housing and policing, I am very concerned that you are now running for president of the United States of America. I will say he is legally qualified,” Williams said.

De Blasio’s legal qualifications were a common theme. The first to mention them was activist Nomiki Konst, who ripped into the mayor’s management of the New York City Housing Authority.

“I think the mayor is more than welcome to put his hat in. He would not be my candidate for president,” she said.

The seven candidates are seeking to fill the role vacated by Attorney General Letitia James in a special election next Tuesday. The race also includes one Republican, Councilman Eric Ulrich of Queens, who did not qualify for Wednesday’s debate at the Borough of Manhattan Community College in Lower Manhattan.