scala - SBT custom task to debug forked JVM -
i want know how make 'debug' task in sbt forks jvm in suspended state allow me attach debugger ide.
i got code far:
lazy val debug = config("debug") extend(test) describedas("debug running forked jvm") lazy val debugsettings: seq[setting[_]] = seq( fork in debug := true, javaoptions in debug ++= seq("-xdebug", "-xrunjdwp:transport=dt_socket,server=y,suspend=y,address=127.0.0.1:5005"), test in debug <<= test in test )
the problem seems 'javaoptions' setting not being picked 'test' task when run "debug:test".
how can make 'debug' command work?
Comments
Post a Comment