Yes. Right-click the breakpoint, select Breakpoint Properties, enable Conditional, and then enter the condition. Note that city == "New York" will not be a good condition because of how equality works in Java, but "New York".equals(city) will be fine. Note that Eclipse allows for simple Boolean conditions like this, as well as "pause when the value changes."
source share