开发者

Is there a Scala command-line debugger?

开发者 https://www.devze.com 2022-12-14 10:42 出处:网络
Is there a Scala command-line debugge开发者_开发问答r (a la jdb)?Old question, but here is sdb, which is a jdb clone written in Scala using the Ensime debugger api: https://github.com/ensime/scala-deb

Is there a Scala command-line debugge开发者_开发问答r (a la jdb)?


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


Will the Scala Interpreter(REPL) to debug not be helpful ? A cooler way, to test your code could be through sbt REPL.

1. sbt
2. console
3. scala ( for Scala REPL ); [cntrl d] to get back to sbt REPL
4. compile
5. test, if you have unit-tests to test code
6. run If one has an object with a main method (or an object extending
   the trait App 
0

精彩评论

暂无评论...
验证码 换一张
取 消