The debate will be held in the House of Commons on February 20 and will also take in a second petition calling for the visit to go ahead, signed by more than 100,000 people.
Once a petition crosses 100,000 names, the Parliament's Petitions Committee is required to consider it for a debate in Parliament.
The petition titled 'Prevent Donald Trump from making State Visit to the United Kingdom'calls for the visit to be downgraded from a State Visit, which is hosted by Britain's Queen and includes a ceremonial welcome and a state banquet.
Downing Street has insisted the visit will go ahead.
Also Read
Meanwhile, thousands of demonstrators packed streets across the UK to protest against Trump's executive order banning entry to nationals of seven countries.
The protesters chanted slogans of "Down with Trump" and "Shame on May" in reference to British Prime Minister Theresa May's decision not to withdraw the invitation to Trump for a state visit to the UK in June.
In London, swarms of protesters gathered outside Downing Street last night with similar crowds in towns and cities across Britain, including Edinburgh, Liverpool, Sheffield, Newcastle, Manchester, Brighton, Birmingham and Leeds.
The UK's shadow home secretary, Diane Abbott, told the crowd she had come on behalf of Labour leader Jeremy Corbyn.
She said: "Donald Trump has been president for only a few days and look at what he is doing.We need to resist the Islamophobia and scapegoating of Muslims, we have got to resist it whether it is in the United States or here in the UK".
"The general principle is that all British passport
holders remain welcome to travel to the US," UK Foreign Secretary Boris Johnson told the Commons.
He added: "We have received assurances from the US embassy that this executive order will make no difference to any British passport holder, irrespective of their country of birth or whether they hold another passport".
"This is not our policy, nor is it a measure that this government would consider. I have already made clear our anxiety about measures that discriminate on grounds of nationality in ways that are divisive and wrong," he said.