Alan Pardew admitted his Newcastle side had to withstand a first-half onslaught from Morecambe before progressing into round three of the Capital One Cup.
The Shrimps had a host of first-half chances with one Padraig Amond header appearing to cross the line on the half hour.
But the Magpies were much-improved in the second half with late goals from brothers Shola and Sammy Ameobi meaning they avoided an upset.
The Toon boss said: “That’s the sort of performance you expect from a home team.
“A second division team are going to show you what it’s about. They’re proper professionals, people who play the game for their livelihood, to pay their mortgages.
“And we had to stand up to that and I’m very pleased with the young players I put in.
“We lacked a little bit of power at the top of the pitch. I felt for Haris (Vuckic) a little bit because he needed a Shola with him rather than Gouff (Yoan Gouffran) so one of them had to be sacrificed.
“And Shola made a big difference when he came on. We got a grip in the second half and I thought we deserved to win it in the end.”
Pardew reserved special praise for Sammy Ameobi who capped a good display with a fine solo goal in stoppage time as the Shrimps pushed for an equaliser to take the game into extra-time.
He said: “I thought Sammy put in a really good display offensively and defensively.
“We’ve had problems with him defensively in the past, never doubted his talent, but he put it all together this pre-season.
“And that’s shown tonight, I thought he was the difference between the two teams until Hatem came on and he really did open the game up for us.”