Tests run from sbt don't show an stacktrace when an exception happens, so I would like to connect to sbt from a debugger to debug the tests. What is an easy way of doing that?
Asked
Active
Viewed 937 times
2 Answers
3
Using the sbt deb/rpm provided by typesafe, this works:
sbt -jvm-debug 8000

Robin Green
- 32,079
- 16
- 104
- 187
2
You can create a separate sbt launcher with the java jdwp args, i.e. -agentlib:jdwp=transport=dt_socket,suspend=y,server=y,address=10000
From here, you can connect your debugger to port 10,000.

Dan Billings
- 852
- 1
- 8
- 18