Pregunta

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?

¿Fue útil?

Solución

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.

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top