【问题标题】:Debugging play framework, different port调试播放框架,不同端口
【发布时间】:2014-01-21 16:22:37
【问题描述】:

我想调试 play 2 应用程序。我的 9000 端口被系统进程占用。启动“play debug run”时如何指定不同的端口?

【问题讨论】:

标签: playframework playframework-2.2


【解决方案1】:

试试这个 - play debug "run 9001"

【讨论】:

    【解决方案2】:

    this comment 中发布的链接解释了如何更改 Play 的 HTTP 服务器运行的端口。至于调试器监听的端口,在 Play 的启动脚本中是硬编码的:

    播放

    if test "$1" = "debug"; then
      JPDA_PORT="9999"
      shift      
    fi
    

    play.bat

    :setDebug
    set JPDA_PORT=9999
    shift
    set additionalArgs=%additionalArgs:*debug=%
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-11
      • 1970-01-01
      • 2017-02-28
      • 2014-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多