Debugging a Scala project (IntelliJ Idea 12 and sbt)

I have seen several articles describing how to debug Scala applications, but nevertheless I want to ask him again because all these articles are outdated and everything changes very quickly in the Scala world.

I use IntelliJ Idea 12 + sbt (not a plugin, the plugin for some reason does not work).

So how do I do this now ?

+6
source share
1 answer

IMO, you better not separate SBT and Intellij separately, as these are two different problems. One is for construction, and the other is for development.

Here are the steps that I usually go through to create a continuous Scala / Intellij development environment for a new Scala project.

  • Step 1: Install Scala Intellij Plugin
  • Step 2: Create a simple sbt project - details here
  • Step 3: add the fantastic sbt-idea plugin to your sbt configuration
  • Step 4: sbt gen-idea
  • Step 5: Open the project in Intellij 12
  • Enjoy debugging, syntax highlighting, code support, and all the other nice features of IJ.

On the sbt side, I usually keep the terminal open, with sbt running so that I can quickly test things out of the Intellij context.

NTN

+6
source

Source: https://habr.com/ru/post/948287/


All Articles