myEclipse debug

在想调试的地方设置断点

在行左侧双击加断点,再次双击取消断点
myEclipse debug

点击Debug按钮开始,程序开始运行到断点处结束

myEclipse debug

调试过程

(1)运行到下一个断点停止

myEclipse debug

(2)会进入到调用的函数内部,逐条运行

myEclipse debug

(3)不会在运行过程中跳入调入的函数,而是直接返回运行结果

myEclipse debug

(4)返回调试的上一步

myEclipse debug