Eclipse Scala Interpreter (REPL) - proper use and debugging

I would like to know what is the best way to use the Eclipse Scala interpreter (Eclipse Scala IDE).

Let's say I have an application with a breakpoint in it. Is it possible to debug an application so that I can execute / evaluate expressions inside REPL at a specific breakpoint? If so, how can I achieve this?

Another thing that made me wonder what the difference is between opening the interpreter as Run configuration or opening it through Window -> Show view -> Scala interpreter .

Do you know any other examples of using the Eclipse Scala interpreter that are interesting to learn, for example, Ctrl+Shift+X for launching a selected expression?

+7
source share
1 answer

Perhaps this is obvious advice, but in addition to just running REPL in the Scala IDE, you can run the highlighted expression in it: just select the expression and press Ctrl + Shift + X (by default, a hotkey).

Update
There is a comprehensive for the Scala interpreter (thanks to Mirco Dotta).
It is also worth mentioning that in the near future the Scala interpreter will improve significantly: integration with the Scala debugger and implementation of the concept known as the worksheet are on the way.

+8
source

All Articles