Java – Debugging Java code line by line

debuggingeclipsejava

Is it possible to debug code line by line in Eclipse showing which line is executing so that I understand the logic of the code? I'm new to programming, please give me suitable advice.

Best Answer

It is possible if you launch your program in debug mode:

Eclipse Debug

put a breakpoint in the section you want to debug.

Here is a quick tutorial to make a Debug launch configuration:

Debug launch configuration