I have a program that modifies images. When I try to compare the results of my program to the expected values the result is pretty much unreadable.
This continues for very very long, so how can I make it so that I only see the difference between the expected and actual values, and where these differences are?
And when using the inbuild debugger, for example if I have a loop
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
do stuff
}
}
How can I set up a breakpoint so the debugger can tell me the values of things I need to know to find out what the error is:
- When i = 99
- Right before a discrepancy between the expected and actual value occurs
- Right before the program exits to an error such as out of bounds.
Because currently, all I can do set a breakpoint on a specific line, but inside a loop I have to click step over repeatedly rather than skip to where I need in the loop.
question from:
https://stackoverflow.com/questions/65851817/how-to-set-breakpoints-at-specific-spots-in-intellij 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…