How To: debug Scala code when outside of an IDE

Viewed 12792

I'm experimenting with using jEdit as my main editor for writing Scala code.

Along side jEdit I'm using Apache Buildr and DTerm. This all works well, except I'm really not sure how I would go about debugging Scala application outside of a large IDE?

Are there recommended practices/tools for debugging outside of an IDE?

3 Answers

Rather than using a debugger, you could run the interpreter (aka REPL) from a point in your application. You can find detailed instructions here

I am not sure you can debug entirely through the CLI. Any Java-based debug tool should be enough.

This SO question mentions jswat, which also has a console mode.
It is used in this blog entry and can be installed quite easily as illustrated here.

Related