0

I usually have to debug some programs. Those are not my code. Example in a Java Eclipse RCP app. I have to do some actions on the GUI, then find out which code has implemented those actions to research the code. In almost cases, I just guess then set some breakpoints to follow the flow of the program in the call stack. Guess then try. Some times is quick. Many times is slowly. I just want to know if there are a technical to know which code has just run if I perform an action on the GUI. Can you share it?

Thank you very much!

aviit
  • 1,957
  • 1
  • 27
  • 50

1 Answers1

0

Try using some code coverage tool.

Here are some code coverage tools listed: Java Code Coverage Tools.

If you are using Eclipse IDE Jacoco is easy to use.

Ran
  • 333
  • 1
  • 4
  • 16