How to see the execution steps of a java program

后端 未结 2 505
孤独总比滥情好
孤独总比滥情好 2021-01-25 11:12

I know that Eclipse have a function that allow us to see the steps of execution of a program.

Can anyone tell me how can I find it? I really need it to study and underst

2条回答
  •  抹茶落季
    2021-01-25 11:42

    Look for the little green bug at the top. If you run it by pressing this icon, your application will run in a new perspective and stop at your breakpoints.

    enter image description here

    Enter breakpoints by clicking the area where you see the blue dot in this picture.

    enter image description here

    Navigate inside of the debugger with:

    enter image description here

    Green arrow is for running till next breakpoint. Red square is for terminating the process. The 90degree arrow goes into methods you invoke showing each step IN the method. The last arrow executes them without showing the steps.

    If you're done with debugging you can switch perspective here.(upper right corner) enter image description here

提交回复
热议问题