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?
-
There's a "debug as" option right next to the "run as". It's pretty obvious.Kayaman– Kayaman2013-09-24 09:16:06 +00:00Commented Sep 24, 2013 at 9:16
-
Read this: vogella.com/articles/EclipseDebugging/article.htmlJuned Ahsan– Juned Ahsan2013-09-24 09:16:34 +00:00Commented Sep 24, 2013 at 9:16
-
How are you running your java application? Kayaman is right that there is a debugging option but the config will vary greatly.Arjun Sol– Arjun Sol2013-09-24 09:16:52 +00:00Commented Sep 24, 2013 at 9:16
Add a comment
|
3 Answers
There are multiple steps required to debug a java program in eclipse such as:
- Setting breakpoints
- Starting the debugger
- controlling the program execution. For line by line use F6 and F5 to step into a method
- 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