'Stop when the line with the line no greater than the current one is
reached or when returning from current frame'

def set_until(self, frame):

    self._set_stopinfo(frame, frame, (frame.f_lineno + 1))
