The incident happened at a property in the Robroyston area at about 11.45pm on Tuesday.
Liam Fee Murder Trial Latest
A young boy fell unconscious when a woman accused of murder put her foot on his neck as he lay on a floor, a court has heard.
Nyomi Fee also smacked and punched the child during the attack, jurors were told.
The trial has also heard how the boy tried to escape on three separate occasions from the house where Fee lived with her partner.
The evidence emerged on day nine of the trial of Rachel Trelfa or Fee, 31, and her civil partner Nyomi Fee, 28, at the High Court in Livingston, where they deny murdering toddler Liam Fee and falsely blaming his death on another young boy.
Two-year-old Liam was found dead at a house in Fife on Saturday March 22, 2014.
Trelfa - Liam's mother - and Fee also plead not guilty to a catalogue of allegations of wilfully ill-treating and neglecting two other young boys over a period of more than two years.
Jurors have been hearing pre-recorded interviews with the boy, who cannot be named for legal reasons, the women blame for the death, conducted by a police officer and social worker.
Asked about an occasion when something happened to his neck, he said: "It was at night... I was getting smacked and punched and I was told to lie on the floor and she (Fee) put her foot on my neck and it made me unconscious for a while.
"I woke up and she was hurting me and punching me on my back because I must have done something but I don't know what because I was unconscious.''
The boy described how he was "choking'' and could see a bright light.
He added: "I couldn't breathe. It was sore.''
He said such an attack happened more than once and spoke of an occasion in which Fee made Trelfa join in.
"It was extra sore,'' he told interviewers.
The boy also described trying to get out of their house on three occasions.
On one occasion, he was smacked and told to get in a drawer unit after being caught by Fee, the court heard.
Referring to the second attempt to flee, he described how he managed to untie himself during the night from a cot, before trying to pack some clothes and food. He also tied some bandages together, jurors heard.
"I tried to open the window but it was locked and I was looking for the keys and I couldn't find it,'' he said.
The court heard his plan was "to put down the ropes, bandages and climb down the house'', but he said it did not work because Fee caught him.
He said: "She came in to check on me. She shouted to (Trelfa) and she was smacking me, Nyomi. Then she took out the drawer and put it on the floor of the corridor and I was told to go in it and she put heavy things on top of it.''
They boy also described trying to leave the house on another occasion when a cage for rats had been placed in front of his door.
Aileen Campbell pledged the Scottish Government will bring forward legislation after 82% of those who took part in a consultation backed the change.
Police Scotland's nationwide campaign will work to reduce alcohol-related attacks, weapon use and anti-social behaviour.
Passengers reported long queues in the terminal building and pictures on social media showed the security hall in near darkness.
Most Viewed Pictures On Heart
Recently Played Tracks
To listen live, choose your preferred station:
Now playing: The best feel good music
Deposit £10 to get a £40 Welcome Bonus - That's £50 to play bingo, slots and more!*
Over 50 tracks to make you feel-good. New album out now...
Find your local four day weather report here.
Make Heart the soundtrack to your day and you could be a winner with great prizes up for grabs throughout the day.
Find out more about some of the companies advertising on Heart Scotland- East.