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
"?
Asked
Active
Viewed 941 times
2

Alex
- 833
- 8
- 15
-
1Duplicate http://stackoverflow.com/questions/8205067/how-do-i-change-the-default-port-9000-that-play-uses-when-i-execute-the-run – ccheneson Jan 21 '14 at 16:25
-
not a duplicate, since debug mode was not covered there. – Alex Jan 21 '14 at 18:37
2 Answers
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=%