Updated

Republican Gabriel Gomez and Democratic U.S. Rep. Edward Markey clashed over Markey's record in Congress and Gomez's background in business during the final and often testy debate of their U.S. Senate campaign in Massachusetts.

Wednesday's debate, sponsored by a consortium of Boston media outlets, came less than one week before the June 25 special election.  The candidates also sparred on term limits, taxes and guns during the one-hour meeting at the WGBH-TV studios.

Pressed to offer more information about clients he worked for at the private equity firm Advent International, Gomez pointed to President Obama, saying Obama's pension fund from his years as an Illinois lawmaker is invested in part with the company.

"You should ask President Obama if he is happy ... with what we have done at Advent International," Gomez said.

The White House did not immediately have a comment.

Markey said Gomez should release even more information about companies he worked with at the firm.

"My vote record is completely transparent," Markey said. "But with Mr. Gomez, we still don't know who his clients are."

Markey also defended his role in obtaining millions in tax dollars for a planned transformation of a polluted industrial site along the Malden River into a telecommunications center, with the promise of thousands of jobs.

The hoped-for jobs never materialized, but Markey said the project was still a benefit to neighboring communities because it cleaned up a blighted area.

During a pointed exchange over term limits, Gomez said he told veteran Republican Sen. John McCain, who campaigned for Gomez in Boston last month, that he should leave the Senate at the end of his term.

"Mr. Gomez did not tell John McCain that this is his last term," said Markey. "That did not happen."

"It absolutely did happen," said Gomez, who has proposed a two-term limit for members of the Senate and has pledged not to serve more than two full terms in Washington.

Markey after the debate said he was not accusing Gomez of lying about the exchange with McCain, but that he still had trouble believing that it had happened as Gomez explained.

Gomez told reporters McCain had indicated his support for term limits.

Brian Rogers, a spokesman for McCain, said in an e-mailed statement to the Associated Press that McCain and Gomez discussed term limits during the visit, but on that particular issue McCain disagreed with Gomez.

The candidates also weighed in on the use of drones.

Gomez, a former Navy SEAL, said that while he would be very hesitant about using drones to target citizens on U.S. soil, that wouldn't apply to American citizens outside of the country who have "switched sides."

"Overseas, absolutely if you've changed sides, if you're an American, you're a vital target," Gomez said.

Markey also endorsed the use of drone strikes overseas if the target is a threat to the national interest and there is no other way of apprehending them.

Markey said drones will pose an increasing privacy threat within the U.S. in coming years as thousands take to the air.

"We have to make sure that as those drones take off that they are accompanied by privacy protections," said Markey, adding that they "could be the spy in the sky."

During a segment of the debate in which the candidates were allowed to question each other, Gomez, who said Markey voted to raise taxes 300 times, asked Markey if he had ever opposed a tax supported by his party. Markey responded that he had voted to reduce taxes to middle class citizens by $1 trillion and opposed tax breaks for big business.

Gomez pointed to Markey's past support for a tax on medical device companies that was included in Obama's 2010 federal health care law.

Markey again brought up Gomez's opposition to a federal ban on assault weapons and high-clip magazines, asking the Republican why an ordinary citizen would need to buy a gun that could shoot 100 rounds in two minutes.

Gomez did not respond directly to the question but pointed to his support for a bill that would broaden background checks, accusing Markey of misrepresenting his position and using the Newtown, Conn., school massacre for political gain.

"You will do anything and say anything to get elected," Gomez said. "You've been doing that for 37 years."

Markey headed into the final stretch of the special election with more than a two-to-one fundraising advantage over Gomez.

Markey's latest campaign finance report shows as of June 5 he had nearly $2.3 million to spend compared to just under $1 million for Gomez.

Gomez said he's unfazed about the spending gap and polls showing he's trailing Markey.

"I've been the underdog my whole life," Gomez said. "You saw the comeback of the underdog begin today in earnest. You're going to see that for the next seven days."

Markey and Gomez are vying for the Senate formerly held by John Kerry, who resigned to become U.S. Secretary of State.