A sleeping man was alerted to a burglar in his Bispham home by his dog barking in the early hours.
The police were called and within 15 minutes thief Dennis Hallsworth was found crossing the road not far away.
He told officers that he had trespassed into the address on Kincraig Road because he had been locked out of his flat for three days and needed food.
Appearing at Preston Crown Court, the 43-year-old, now of Kincraig Road, Bispham was sentenced to 16 months in prison.
Prosecutors said a couple lived at the burgled address and at 3.30am the man was woken by the noise of his dog barking. He went down to the living room and saw a window wide open.
A mobile phone and a purse had been taken.
Hallsworth initially denied burgling the home, but went on to claim a window had been open, so he went in for something to eat.
A dog had started barking, so he jumped back outside, he said.
He had a long history of previous convictions, going back more than 30 years, but only two previous house burglaries to his name.
Judge Robert Altham told him: “It must be unsettling to be woken at night and discover while asleep that somebody else has been into your house.
“House burglaries need to be dealt with severely.”