Image copyright Getty Images Image caption Front-runners Elizabeth Warren, Joe Biden and Bernie Sanders all addressed the impeachment inquiry

The fifth Democratic presidential debate was held on Wednesday evening at the Tyler Perry studios in Atlanta, Georgia.

For at least a few hours, 10 presidential candidates did their best to wrest the attention of American voters away from the ongoing impeachment hearings that have dominated national headlines for weeks.

First, however, they had to address the elephant in the room.

Senator Elizabeth Warren, a front-runner and one of the first candidates to suggest Donald Trump should be impeached, said she would try to convince Republican senators to vote to remove the president by telling them to view the latest revelations about Ukraine as part of what she said was Mr Trump's ongoing lawlessness.

She added a plug for her anti-corruption plan, which includes a proposal to ban big campaign donors (like Gordon Sondland, the star of the day's impeachment hearings) from being named ambassadors.

Two other candidates with strong support, Senator Bernie Sanders and South Bend Mayor Pete Buttigieg, also had an opportunity to chime in. Sanders, as he often does, labelled Trump a pathological liar and the most corrupt president in modern history. Buttigieg said the president had abused his power, but pivoted to calls for unity - a major theme of his campaign.

Then there was Joe Biden, the man Trump encouraged the Ukrainians to investigate. Although the former vice-president's once dominating lead in the polls has been greatly reduced, he said he attracted Trump's attention because he's the one best positioned to beat him.

Media playback is unsupported on your device Media caption The big names who had a bad day at the impeachment hearing

With that out of the way, the Democrats turned to the kind of topics that have dominated previous debates: taxes, the environment, foreign policy and, most of all, healthcare.

Senator Kamala Harris sharply criticised Congresswoman Tulsi Gabbard after she said the Democratic Party was corrupted by the foreign policy establishment, the military-industrial complex and "greedy corporate interests".

It was a bit of payback after Gabbard attacked Harris's criminal justice record in the July debate - a moment that marked the beginning of Harris's slow but steady slide from near-front-runner to back-of-the pack afterthought.

Sanders took a swipe at Biden's support for what he labelled the "terrible" 2003 Iraq War.

Media playback is unsupported on your device Media caption Cory Booker to Joe Biden: 'I thought you might have been high'

Then there was an exchange on the Democratic Party's appeal to black voters, which included Biden's rather extraordinary assertion that he "comes out of the black community" in terms of his support.

That assertion sparked an incredulous response from Harris and Senator Cory Booker, the two black candidates on the stage.

Harris said minority voters were the "backbone" of the Democratic Party that was too often taken for granted.

Image copyright Reuters Image caption Tulsi Gabbard received some harsh criticism from Kamala Harris

The real fireworks didn't hit until the tail end of the debate, however, when Senator Amy Klobuchar and Gabbard took turns questioning what they viewed as Buttigieg's relatively thin political resume.

Buttigieg entered the debate with a target on his back. Recent polls in Iowa and New Hampshire, the first two states in the Democratic Party's presidential nomination process, showed the mayor of Indiana's fourth-largest city surging to a statistically significant lead.

Noting that she has a record of accomplishment winning elections in a swing state and getting legislation passed in Congress, Klobuchar said: "I think experience should matter."

Gabbard went after Buttigieg's suggestion that US troops should be sent to Mexico to help fight drug cartels.

Buttigieg, who clearly anticipated the attacks, had his responses ready.

"Washington experience shouldn't be the only experience that matters," he said to Klobuchar. "There are more than 100 years of Washington experience on this stage right now, and where are we now?"

As for Gabbard's criticisms, he said he had more than enough experience to know that he shouldn't sit down with a "murderous dictator" like Syria's Bashar al-Assad - something Gabbard did in January 2017.

In just over two months, Democrats will start the process of selecting their party's 2020 presidential candidate. In their closing remarks after the sometimes acrimonious debate, Democrats made their pitch to be "the nominee to go toe-to-toe with Donald Trump," in Harris's words.

The debate took place on the same day that a Marquette University poll showed Donald Trump beating all the major Democratic candidates head-to-head in a hypothetical general election matchup in Wisconsin, considered one of the key 2020 swing states.

Image copyright Reuters Image caption Amy Klobuchar, speaking next to Pete Buttigieg, had perhaps her strongest performance so far

Past debates have been characterised by contentious exchanges between centrist and progressive candidates.

This time around, the focus frequently shifted to which candidate was best positioned to take on the president, as if the participants could sense their voters' growing concern.

"I don't think you have to be the tallest person on this stage to be president," Klobuchar said in what was perhaps her strongest performance in any of these Democratic debates.

"I don't think you have to be the skinniest person. I don't think you have to have the loudest voice on this stage. I don't think that means you will be the one that should be president. I think what matters is if you're smart, if you're competent and if you get things done."

Democrats, looking at that Wisconsin poll, will probably be worried about what it will take to beat Trump.

The winner of the party's nomination might be the person who gives Democratic voters the most confidence that even if impeachment fails, Trump's days in office are approaching an end.