java - Enable breakpoint after a number of hits -
i want debug huge collection of 760000 records in record 54000 hangs , want debug loop don't want continue 54000 times manually.
is possible put condition in intellij stop thread after number of iterations?
i don't know exact size of collection iterable , don't know how index.
edit: guess work around , edit code insert counter in loop , create condition on breakpoint stop on iteration suspect wrong.
for (item item: iterable) { counter++; }
and condition breakpoint.
counter==54000
but unfortunately, can't amend code add counter.
*using community edition of intellij
place break point usual, right-click on -> properties. in opened dialog there "condition" edit box, here put expression.
Comments
Post a Comment