了解了怎么调试后,第一步:debug the world
。
public class hello {
public static void main(String[] args) {
System.out.println("this is a block test message");
System.out.println("hello world");
}
}
${path-to-project}/hello/src/hello.java
-右键-run hello.main()
···
···
this is a block test message
hello world
Process finished with exit code 0
this is a block test message
后停下hello world
就这样我们就可以在对一个简单的java程序进行进程断点后,我们就能够对程序的输出的进度可控。