Answer the question
In order to leave comments, you need to log in
What means can be used to organize the output of the value of the target elements of the code during step-by-step debugging?
Sometimes, for a better understanding of the algorithm, it would be very convenient to see the state of the element of interest to me (array, variable, etc.) at the current debugging step - so that this does not require additional actions (for example, for Eclipse - move the mouse over this element).
Purely for understanding - let's take something like this and put breakpoints on each line in for.
double [] array = new double [10];
for (int i = 0; i < array.length; i++) {
array[i] += i*i;
if (array[i] % 2 == 0) array [i] = Math.random() + array[i]*array[i];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question