How to get IntelliJ to show unused variables in debugger
Sometimes when debugging I put an extra variable in the code so I can then
see the value of that variable in the debugger. However it seems that if
the extra variable is not used anywhere else in the code then IntelliJ
does not include the variable in the debugger. I've gotten around this by
declaring a dummy variable and setting it equal to the variable I want to
see in the debugger, because that way IntelliJ sees that the extra
variable is used.
Is there a way to configure IntelliJ to show unused variables in the
debugger?
No comments:
Post a Comment