Scott McGhie had been banned from approaching or attempting to approach the woman after the order was imposed on February 4 this year.

But the 33 year old breached the order by entering the street where she lived then contacting her on March 18.

Just two days later McGhie, of Burns Street, again broke the terms of the ASBO by trying to get in touch with the woman.

McGhie previously pleaded guilty to the breaches and appeared at Dumbarton Sheriff Court last week for sentencing.

Claire Martin, fiscal depute, told the court McGhie and his partner had been in a relationship for four years but it had come to an end.

At around 10.15pm on March 18, the woman was at her home at Pattison Street when she heard someone knocking at the door. She saw McGhie outside and he was asking to be allowed in. He moved round to the back of the house and started knocking on the windows, while his ex-partner closed the curtains.

Ms Martin said: “He then returned to the front and was let into the hallway, where they had a brief conversation.

“One of the children awoke and the witness said she wanted the accused to leave. The accused left the locus and she called the police.” Officers attended at McGhie’s home at around 12.30am — but only two days later, he was back in trouble.

On March 20 at 7.30pm, the woman heard someone knocking at the door.

Ms Martin continued: “She could hear her ex-partner shouting to be let in. She shouted back to him to go away.

“He went to the back living room window asking to be let in. The witness shouted, asking him to go away.” The court heard the woman was alone with her child and decided to call police. Officers attended and saw McGhie near the common courtyard area at the back of the flat.

McGhie told police he had accidentally met the woman earlier in the day. He had then consumed alcohol and thought he would try and speak to her in an effort to rekindle the relationship but admitted that, as he sobered up, he realised that the decision had been a mistake.

Peter Young, defending, said his client had problems with drink but added that his recent stay in custody had “motivated” him to address the issues.

Mr Young said: “He goes out and gets drunk then commits these offences. He has asked me to suggest that you consider a non-custodial sentence.

“He tells me that he is motivated to tackle his drinking.” Sheriff Craig Turnbull told McGhie: “I was the one who imposed the anti social behaviour order across three separate complaints.

“It cleaned the slate then. I put a CPO [community payback order] in because I thought it might help you.

“Within weeks of me doing that, you breach it not once but twice.

“You really are putting the court in a position where all we can do is put you in prison for quite a long time. I am satisfied I can just deal with this by way of an alternative to a custodial sentence.” McGhie was sentenced to a total of 220 hours of unpaid work. and placed under supervision for two years. One hundred hours must be completed within six months while the remaining 120 must be carried out within a year.