【发布时间】:2011-12-08 11:05:31
【问题描述】:
我写了一个小示例程序,看看关于 Eclipse Conditional Break Points
public class Test {
public static void main(String args[]) {
System.out.println("One3");
String str = null;
String name = str;
}
}
在 Eclipse Debugger Perspective 中,在 BreakPoints 下,我设置了如图所示的条件 str!=null
请看这里的图片。 http://tinypic.com/view.php?pic=kdrc0g&s=5
据我了解,条件 (str!=null) 不符合代码,因此调试器会发出警告。
请告诉我我的理解是否正确??
【问题讨论】:
标签: eclipse