Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I would like to debug the whole flow of a java program line by line and I am using eclipse how can I do that?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
734 views
Welcome To Ask or Share your Answers For Others

1 Answer

There are multiple steps required to debug a java program in eclipse such as:

  1. Setting breakpoints
  2. Starting the debugger
  3. controlling the program execution. For line by line use F6 and F5 to step into a method
  4. Evaluating variables etc

Putting everthing here will make the answer too long. I advice you to follow this tutorial :

http://www.vogella.com/articles/EclipseDebugging/article.html


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...