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 → Evaluate Expression
(ALT+F8). I would like to have possibility to evaluate a bunch of expressions like:
System.out.println(myVar1);
System.out.println(myVar2);
In Eclipse this is possible to execute such "script of expressions", but I can not find a solution in Idea.
You have to click "Code fragment mode" in the evaluate expression dialog (Alt+F8) and you can enter as many lines as you want instead of single line - which is default - "Expression mode".
Then you can switch back anytime using "Expression mode" button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With