Is there a Scala command-line debugger (a la jdb)?
Specifies command line information required by the file you want to test. After debug starts, type "?" to display a list of debugging commands. To get out of debugging mode, you need to type "Q" and press Enter . To execute the debug routine, you need to type "G" and press Enter .
Another way to execute Scala code is to type it into a text file and save it with a name ending with “. scala”. We can then execute that code by typing “scala filename”. For instance, we can create a file named hello.
Old question, but here is sdb, which is a jdb clone written in Scala using the Ensime debugger api: https://github.com/ensime/scala-debugger/releases/tag/v1.1.0-M3
And the sbt plugin: https://github.com/ensime/scala-debugger/releases/tag/v1.1.0-M3-2
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