2

I want to debug play 2 application. My port 9000 is occupied by a system process. How do I specify a different port when launching "play debug run"?

Alex
  • 833
  • 8
  • 15

2 Answers2

4

Try this - play debug "run 9001"

serejja
  • 22,901
  • 6
  • 64
  • 72
0

The link posted in this comment explains how to change the port that Play's HTTP server runs on. As for the port that the debugger listens on, that's hardcoded in Play's startup script:

play

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

play.bat

:setDebug
set JPDA_PORT=9999
shift
set additionalArgs=%additionalArgs:*debug=%
Community
  • 1
  • 1
avik
  • 2,708
  • 17
  • 20