if (true) {
String a = "foo";
String b = "bar";
}
If I set a breakpoint at String a = "foo";
eclipse will stop, and I can step over and see the value of a
inside the variables window. But I can't step over the 2nd statement, it just leaves the code block and I never see the value of b
.
This forces me to add a noop statement after String b = "bar";
just so I can see what b
contains. I also can't add a breakpoint on the closing }
which I think are maybe related issues.
I know Visual Studio allows this, so is there a way to do this in Eclipse?