2
votes

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"?

2
not a duplicate, since debug mode was not covered there. - Alex

2 Answers

4
votes

Try this - play debug "run 9001"

0
votes

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=%