【发布时间】:2014-07-01 19:15:32
【问题描述】:
我已将 Scala/SBT 项目拆分为多个子项目。其中一个子项目是 Play Framework Web 应用程序。
进行此更改后,我很难在调试模式下启动应用程序。我可以通过以下方式运行它:
$ projects
[info] In file:/my/project/
[info] * root
[info] actors
[info] test
[info] ui
$ project ui
$ projects
[info] In file:/my/project/
[info] root
[info] actors
[info] test
[info] * ui
$ run
但这并没有打开 JPDA 端口进行调试。在调试模式下启动子项目的方式是什么?
【问题讨论】:
-
您之前是如何“以调试模式启动应用程序”的?您可以使用
ui/runrunui 项目。阅读Scope axes。 -
在一个模块中包含所有内容时,我能够运行
play debug。感谢您用范围轴提示我,它看起来像我正在寻找的解决方案。 -
让我知道如何更改答案,以便...提示,提示...获得批准 :) 我们还可以更好地解决问题,使其符合您的需求。
-
啊,
play debug。你应该可以做到ui/debug。 -
我已经尝试过了,但出现以下错误:
play ui/run java.lang.RuntimeException: */*:playRunHooks is undefined. at scala.sys.package$.error(package.scala:27) [trace] Stack trace suppressed: run last ui/compile:run for the full output. [error] (ui/compile:run) */*:playRunHooks is undefined. [error] Total time: 92 s, completed May 14, 2014 6:51:54 PM
标签: playframework sbt