Run sbt project in debug mode with a custom configuration

前端 未结 3 1534
梦如初夏
梦如初夏 2021-02-09 03:22

I want to introduce a debug mode in my sbt 0.11 project using a special configuration. I\'ve tried to implement this using the following code but unfortunately, it doesn\'t seem

3条回答
  •  遇见更好的自我
    2021-02-09 04:00

    for simply running sbt project in debug mode , just do

    JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005

    and then

    sbt run would run SBT in debug mode, you can create a remote debug configuration in eclipse and connect to it. this is a rather lame, but useful when you have a multi module play project and want to run one of the modules in the debug mode

提交回复
热议问题