A burglar was arrested after police followed his footprints through snow in South Yorkshire for more than a mile.
Shane Leonard raided a warehouse and stole computer equipment and petty cash, Sheffield Crown Court heard.
He activated an alarm and police attended – finding his footprints in the snow and following them to his front door.
Michael Tooley, prosecuting, said Leonard was barefoot when officers knocked, and they saw his trainers drying.
He said: “In the opinion of the constable, the pattern of the tread on the soles matched the tracks in the snow.
“They were the tracks he and the police dog had followed for 1.4 miles.”
Leonard, aged 24, of Cedar Crescent, Kendray, Barnsley, admitted burglary and other offences of handling stolen goods, possessing amphetamines with intent to supply and producing cannabis.
The court heard that while on bail for the drugs offences, Leonard handled a toolbox and other property worth nearly £1,000 stolen after an accomplice broke into commercial premises.
Andrew Smith, for Leonard, said he had been addicted to Class B drugs for some time and stole to fund his habit.
Judge Julian Goose jailed him for 15 months.