Is there a way to save a variable and its values โ€‹โ€‹during debugging in intellij?

I am struggling with a mistake. I can not find it. Is there a way to compare the debug results before and after the change in intellij. Other solutions would be welcome.

I explain my script here.

I am debugging a class and there are three variables at the breakpoint. I called it variableA , variableB and variableC . For example, the debugger stops when a variable gets its values. At this time I would like to save the contents of variableA . That way I can compare the contents of variableA before and after the change.

+6
source share
2 answers

Will printing work? you can use the global counter to track which pass you are on, and then compare the values โ€‹โ€‹in the consoles.

+1
source

I think the only thing you can do in your case is to open all the values โ€‹โ€‹of the variable and select everything and copy-paste, as Mark noted in his comment.

0
source