java - Breakpoint in loop after large number of iterations in Eclipse -


suppose have following code. while debugging, want eclipse stop when has done 1 million iterations. how this? cannot manually 1 million times.

for(int = 0; < 10000000; i++) {     //some code } 

you can put conditional break point in eclipse:

  1. put breakpoint
  2. right-click->properties
  3. turn on "condition" check-box
  4. put condition code

    i == 1000000


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -