代码之家  ›  专栏  ›  技术社区  ›  Trace

Lagom调试器Intellij

  •  3
  • Trace  · 技术社区  · 7 年前

    我无法让调试器工作。 复制步骤:

    (一) sbt lagom:runAll

    enter image description here

    2个) sbt -jvm-debug 5005

    enter image description here

    3)在Intellij+启动调试中设置远程配置

    enter image description here

    enter image description here

    4)设置断点

    enter image description here

    5)提出要求

    enter image description here

    调试器不会在断点处停止。
    这里有什么问题?

    1 回复  |  直到 7 年前
        1
  •  4
  •   Tim Moore    7 年前

    你需要使用 -jvm-debug 旗帜 sbt runAll 命令,如下所示:

    sbt -jvm-debug 5005 runAll
    

    您的列表中的以下步骤是正确的。

    当你跑的时候 sbt runAll sbt -jvm-debug 5005 作为单独的命令,您将创建两个单独的sbt会话:一个运行您的服务,另一个只在提示时等待输入。连接调试器时,调试器将连接到第二个空闲会话,而不是运行服务的会话。