繁体   English   中英

如何使用SBT / Eclipse调试Play框架

[英]How to debug play framework with sbt/eclipse

阅读该文档,看起来很容易做到。 我只需要用

sbt -jvm-debug 9999 run

但是,我确实有此错误消息:

[info] Loading settings for project play-java-ebean-example-build from plugins.sbt ...
[info] Loading project definition from D:\play\play-java-ebean-example\project
[info] Loading settings for project root from build.sbt ...
[info] Set current project to play-java-ebean-example (in build file:/D:/play/play-java-ebean-example/)
[error] Expected symbol
[error] Not a valid command: -
[error] Expected end of input.
[error] Expected '--'
[error] Expected 'debug'
[error] Expected 'info'
[error] Expected 'warn'
[error] Expected 'error'
[error] Expected 'addPluginSbtFile'
[error] -jvm-debug 9999 run
[error]  ^
[INFO] [12/30/2018 17:19:45.858] [Thread-3] [CoordinatedShutdown(akka://sbt-web)] Starting coordinated shutdown from JVM shutdown hook
  • 播放:2.6.x版
  • SBT:1.0版
  • 作业系统:Windows 10

作为解决方法,我添加了以下行

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999

在文件中

sbtconfig.txt

只需使用以下命令启动应用程序

sbt run

您将看到跟踪:

Listening for transport dt_socket at address: 9999

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM