vendredi 29 juillet 2016

Setting a breakpoint on else-if statement doesn't work

Example code:

public class test {
    public static void main(String[] args) {
        if (false) {
            System.out.print("if");
        } else if (true) {

            System.out.print("else-if");
        }
    }
}

and set breakpoint like the picture: enter image description here

Then debug it, however, Intellij IDEA doesn't stop at the breakpoint. Why?

Aucun commentaire:

Enregistrer un commentaire