I'd like to get a new value in intellij debug evaluate expression window and use it twice. Example:
ResultSet resultSet = preparedStatement.executeQuery();
resultSet.next();
resultSet.getObject(1);
Eventually, I'd like to see the value of resultSet.getObject(1)
in the debug view.
Trying to do the above (with semi-columns) in the Evaluation window shows a red line and writes invalid expression
when trying to evaluate the expression.
How to execute several lines of code with a variable in intellij idea Java debug?