Lets say i have a couple of loops in my Java code. To check my code for correctness, i write all the necessary variables on paper and imagine the code executing in my mind. I note their values with each step on the paper. Sometimes i have to use print statements also to spot errors.
Is there any software (stand alone or plugin for Eclipse IDE which I use) which can track all these things for me ?
This is exactly what the Debugger is for. Resist the urge to write to console or file to track these values.
Spend some time learning how to use the debugger correctly, you're going to spend a lot of time using it in the future.
Note: I think it is very positive that you instinctively came to the conslusion that a tool such as the debugger should exist.
See this link if you use Eclipse IDE.
Mostly all IDEs have a built in debugger which allows you to set breakpoints and step through your program line by line, viewing variable values at each step of the way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With