Clean solution for dropping into REPL console in the middle of program execution
问题 Is there any working solution for dropping into REPL console with for Scala 2.10? This is mainly for debugging purpose - I want to pause in the middle of execution, and have a REPL console where I can inspect values and test the program's logic using complex expressions within my program at the current state of execution. Those who have programmed in Ruby might know similar function: the binding.pry . AFAIK, Scala 2.9 and under used to have breakIf but it has been removed from the later