Question

I am a beginner using eclipse for java programming. Recently I downloaded certain source code online and ran it in eclipse successfully. I want to learn how it runs. However, I failed to find a way to monitor the progress during the program running. For example, if I run the application and click certain button in the application GUI, how do I know which class/method is called? In other words, how can I use eclipse to monitor the process of program running?

Was it helpful?

Solution

The general answer is to use the debugger. For example, set a breakpoint in some method and then use "Debug As" instead of "Run As" to run the application within Eclipse.

Here are a couple of tutorials / articles on using the Eclipse Debugger.

OTHER TIPS

Put a breakpoint(double click the left side of the line) on your method to be debugged and debug your program.

Simply put breakpoints in the code lines you need to look and run the application in the Debug mode then it'll wait at the relevant code lines you need to check.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top