Evaluating many expressions at once in Intellij Idea

后端 未结 4 1195
囚心锁ツ
囚心锁ツ 2021-01-13 04:12

In Intellij Idea, I\'m looking for a way to evaluate many expressions in debug mode with one command.

Normally I can evaluate single command with Right Click →

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-13 04:42

    You can evaluate such expressions in Evaluate window

    System.out.println(myVar1);
    System.out.println(myVar2);
    

    The only thing here is that your whole result (not last) will appear not in the same window but in a console.

提交回复
热议问题