OSAKA, Japan – President Donald Trump on Thursday slammed Democrats taking part in the second of two presidential debates this week, breaking from a meeting of global leaders taking place in Japan to suggest their performance guaranteed his re-election.

Trump blasted Democrats for universally pledging their health care proposals would provide coverage for immigrants in the country illegally.

"All Democrats just raised their hands for giving millions of illegal aliens unlimited healthcare. How about taking care of American Citizens first!?" Trump posted on Twitter in between meetings with other world leaders. "That’s the end of that race!"

As Democrats held their second debate Thursday evening, Trump was in Japan for the annual G-20 meeting. The international stage didn't stop him from keeping an eye on politics at home.

Live coverage:The 2nd night of the Democratic debates, and blistering attacks, is over. Biden was battered, Harris strong

Biden on defense:Joe Biden, Kamala Harris square off as Democratic rivals go on the attack on the debate stage

Trump mocked the Democrats during a meeting with Angela Merkel, telling the German chancellor he would rather be "spending time with you than watching the debate."

The president went on to speak at length about the debate during that meeting, at one point again citing pledges by candidates to extend health care plans to migrants.

Trump said he "passed a television set" and "saw that maximum health care was given to 100% of the illegal immigrants coming into our country by the Democrats.”

He said Democrats have not given similar attention to American citizens.

Trump later took another shot at the Democrats while denouncing the socialist government in Venezuela.

“I heard a rumor that the Democrats are going to change their name from the Democratic Party to the Socialist Party,” he joked.

Early Friday morning, Trump took another swipe, this time sending insults to former Vice President Joe Biden and Vermont Sen. Bernie Sanders.

Trump suggested Wednesday that he wouldn't tweet much during the first Democratic presidential debate because he was on Air Force One en route to Japan and off “to save the world." But roughly 30 minutes into the debate, the president tweeted out his snarky, all-caps, one-word review: “BORING!”

By Thursday evening – Friday morning in Japan – Trump was scheduled for a busy slate of meetings with world leaders.

BORING:President Donald Trump, other Republicans slam Democratic debate

Trump’s decision to weigh in on the debate ran counter to the advice of many Republican strategists, who suggested he should resist the temptation to respond as Democratic hopefuls battled each other and courted their party’s liberal base.

That advice, however, didn't apply to the president's closest allies. Donald Trump Jr. took to Twitter to offer his review of the debate and Biden’s performance in particular.

“Live shot inside Biden HQ: #DemDebate2,” he tweeted.

The post included a photo of the Hindenburg crashing and burning.

Like what you’re reading? Download the USA TODAY app for more