conditional break points by passing function as mode