A police officer wept as she told a court how a colleague saved her from a speeding car which had earlier came within an inch of running over her head.
PC Deborah Lawson, 31, broke down as she told jurors how she thought she was going to die when a vehicle sped towards her in Glasgow's Banner Drive last year.
The High Court in Edinburgh heard on Tuesday how PC Lawson had fallen to the ground after she had grabbed onto the vehicle and it started reversing.
The court heard how PC Lawson and her policing partner PC Robert Fitzsimmons had earlier tried to speak to the driver of the car.
However, the driver refused to co-operate with them.
PC Lawson told the court that her partner had used PAVA incapacitant spray on the driver and a male who was sitting in the rear passenger seat.
However, it had no effect and the driver started going backwards at speed.
PC Lawson told the court she fell over and the car continued to reverse.
She told prosecution lawyer Tim Niven Smith that the driver didn't stop when he was going backwards and her head came close to the front wheel as she fell.
She added: "It came within an inch of my head."
PC Lawson also told the court that the headlights dazzled her and she could hear the engine of the car revving.
The police officer, who suffered a punctured lung and other injuries, added: "I was in agony and I couldn't move. I just remember PC Fitzsimmons screaming my name.
"He was screaming Debbie!
"I believe the car was going to drive over me. PC Fitzsimmons grabbed me out of the way.
"If he didn't move me, I wouldn't be here today. I could only hear the the car. It drove past me at speed. The engine was revving.
"I thought I was dead. I thought I was going to die."
PC Lawson, who is based at Drumchapel Police Office in Glasgow, was giving evidence on the second day of proceedings against David McLean, 31, and Ryan Gilmour, 25.
The pair deny attempting to murder PC Lawson and PC Fitzsimmons in Banner Drive in the city's Knightswood area on October 23, 2016.
The two men also deny committing other offences on the same day.
On Tuesday, PC Lawson told Mr Niven Smith that she and her colleague were told to go to Banner Drive at approximately 11.15pm.
The police control room told the two officers that they were dealing with a disturbance.
PC Lawson told the court that when they arrived in the street she saw a dark 4x4 vehicle.
She said she and her partner became suspicious of the car and she got out to speak to the driver.
PC Lawson said the driver appeared to be completely startled and looked as though he was going to run away.
Shortly afterwards, the court heard how PC Lawson tried to take hold of the driver to stop him from getting away.
But the man started struggling with her and PC Fitzsimmons used his spray.
The court heard this didn't have any effect on the two men. PC Lawson said she then tried to restrain the driver's right hand.
She added: "I removed my handcuffs from my holster. I was intending to handcuff the driver's right hand.
"The car started reversing back. I honestly can't remember what I was holding onto. I grabbed onto something to stay upright.
"My next memory is looking down at my feet. I was getting dragged along the ground.
"I just remembering screaming. It was the only thing I could do to get the driver to stop the car."
PC Lawson said she fell over and was pulled to safety by PC Fitzsimmons.
She said she suffered a punctured lung, a fractured shoulder blades and three fractured ribs, as well as mental trauma.
Prosecutors allege that McLean and Gilmour reversed a Nissan Qashqai towards the two officers.
The Crown claims the two men "repeatedly struck" the Police Scotland officers with the vehicle before driving towards PC Lawson.
On the same day of the alleged attempted murder attempt, both McLean and Gilmour are said to have acted in disorderly manner in Banner Drive and pursed three men.
Prosecutors claim McLean and Gilmour banged on the door of a house in the street and attempted to gain entry to it.
The pair are further charged with attempting to pervert the court of justice by wilfully setting fire to the Nissan Qashqai at Lennox Gardens in Glasgow with the blaze destroying the vehicle.
The trial, before Lord Summers, continues.