假设有如下程序段:
public static void main(String[] args) {
int a=9;
while(a<3000){
a++;
System.out.println("a="+a);
}
}
假设只希望在a=2500的时候,段点才停住,此时只要在段点上右击->properties->Enable Condition,输入
a==2500即可,和if里面的表达式是一样的。
refurl:http://blog.sina.com.cn/s/blog_4cef5c7b0100vc1n.html
下面这个文章还有如何修改variable里面的值等高级调试技巧。