سؤال

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?

هل كانت مفيدة؟

المحلول

Using the sbt deb/rpm provided by typesafe, this works:

sbt -jvm-debug 8000

نصائح أخرى

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top