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:
- put breakpoint
- right-click->properties
- turn on "condition" check-box
put condition code
i == 1000000
Comments
Post a Comment