作为使用Eclipse的程序员都会使用它的Debug。但是有不少人只会用F6、F8,其他功能知之甚少。今天我就来总结一下我在使用eclipse的debug时的一些个人经验。水平有限,不足之处还请赐教。
测试代码
学东西能够学以致用才是关键。所以我使用示例代码的形式讲解每一个点。在下面的代码中,我打了两个断点(代码中注释位置)
public class DebugTest {
public static String firstCall() {
System.out.println("firstCall...");
return "first";
}
public static String secodeCall() {
System.out.println("secondCall");