Debugging Scala projects inside IntelliJ when running tests from SBT.


Debugging Scala projects inside IntelliJ when running tests from SBT.

The way I debug my code is that I write lots of tests using SBT and then put a bunch of print statements in my code. When all tests pass, I remove all print statements.

But this is proving to be quite inefficient. I have seen debugging features in IntelliJ. but I don't know how they will work when I run my tests using sbt test and these tests using Akka Http Web services.

I wonder if the debugging features of the IDE can be hooked up to sbt so that the breakpoints fire when running tests.

Submitted February 10, 2017 at 10:47PM by know_not_much
via reddit http://ift.tt/2lwRXKq