List
s--often we just get Iterators
or Iterables
, and for performance reasons, we often don't impose any reproducible order on these collections (so we tend not to use Comparators
and my favorite interview question whose answer is LinkedHashMap
).The result is that you can't just pause at position 3721 in the
List
. You have to wait for the chunk of data that has exactly the structure you're looking for. Enter conditional breakpoints: right-click the breakpoint, go to properties, click on "Condition". What's really great is that the expression box is itself a fully featured mini-IDE, so you get autocomplete goodness. Sweet!
No comments:
Post a Comment