How do you go through a program in Eclipse?

I want to follow the Java program so that I can understand how everything works together. I could do this with Visual Studio, so I hope that Eclipse can also be able to go through what I could not find.

+3
source share
4 answers
  • Place a breakpoint on the given line (double-click to the line or right-click) to switch the breakpoint)

  • Run the program in debug mode. That is, Debug As> Java program

  • Whenever a breakpoint is reached, a debugging perspective opens up and you can get through.

+6
source

, , F11 . F5 F6 , CTRL-SHIFT-B / .

+2

step1, step2, step3, step4 .

alt text

alt text

alt text

alt text

+2

. - , , , , "Toggle Breakpoint". ' , Eclipse, Debug. "" > " " . , ( "public static void main" ( String args []) " Debug As > Java. , , Eclipse . , , . " Debug View". "" .

+1
source

Source: https://habr.com/ru/post/1776938/


All Articles