gpt4 book ai didi

scala - 如何在eclipse中调试sbt项目

转载 作者:行者123 更新时间:2023-12-01 03:38:58 26 4
gpt4 key购买 nike

我有一个 sbt项目,我想在 Eclipse 中调试它

我在 sbt 中没有找到任何关于调试的信息文件

我找到了这个命令 sbt-debug 5005但它不工作它说

sbt-debug: command not found



我在博客上读到我们可以使用第三方库来做到这一点,但我想用 sbt 调试我的项目

如何在 Eclipse 中调试我的 sbt 项目?

请帮我

最佳答案

Build.scala 中添加以下内容

javaOptions in (Test) += "-Xdebug"
javaOptions in (Test) += "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"

一些其他有用的链接可以帮助您 -

sbt and eclipse

scala-eclipse-sbt-and-debugging

using-eclipse-and-sbt-in-scala

Finally, sbt12 and eclipse debug - how to!?

关于scala - 如何在eclipse中调试sbt项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32224072/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com