A continue instruction in a while loop is not executed. In Eclipse Debugging, the loop just breaks after the System.out.
Anyone know what may cause this, is there a way to debug on cpu instruction level to see what happens ?
do { // recursive calls through element.parents() until the formula pattern (patternFormula) matches
counter++;
System.out.println(counter);
lookupElement = lookupElement.parent();
String s = replaceArrowTagAndClean(lookupElement.html()); // replace <img .. src=> and return text()
m = patternFormula.matcher(s);
if( (found = m.find()) ) {
oneMoreLookahead = false;
System.out.println("Continue " + counter);
continue;
}
} while(!found || oneMoreLookahead);
System.out.println("End");
Output is:
1
2
3
4
Continue 4
End
(Sry, had quite some trouble creating this post. lol)
continue;change that?