Have you tried Conditionnal breakpoint while debugging an Open AT application ?
Conditional Breakpoints.png