Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you debug an sbt build in IntelliJ


I have an sbt build that is giving me some problems. is there a way to debug it in IntelliJ?

like image 803
Salil Surendran Avatar asked Sep 05 '25 03:09

Salil Surendran


1 Answers

It is possible to add any java command line, including sbt commands, as a run/debug configuration. Open the menu "Run", "Edit Configurations", "+" (Add new configuration), choose "SBT Task" and fill the necessary parameters. For example, if you have a test that fails under "sbt testOnly", put "testOnly package.ClassOfFailingTest" into "Tasks" box.

like image 118
Konstantin Pelepelin Avatar answered Sep 08 '25 00:09

Konstantin Pelepelin