3

I usually start my Play 2.0 application with play "~run 8991" to run my application on port 8991 instead of the default port 9000, as described in this other Stack Overflow question.

But how can I change the default port when I want to debug my application? play "debug run 8991"* still uses port 9000; the 8991 will get ignored.

(Note to close voters, this is NOT a dupe of the linked question. That one says nothing about debugging.)

Community
  • 1
  • 1
Sonson123
  • 9,321
  • 10
  • 46
  • 68
  • It's not a duplicate, as the answer there does work only with `run` and not with `debug run`. – Sonson123 Jan 22 '13 at 16:21
  • 1
    Yeah, this is not a duplicate. – James Ward Jan 23 '13 at 04:54
  • I voted to leave closed. The answer in the other thread covers many related cases. "Debug" is just another slight variation and you should comment on the other answer for it to be included. This does not warrant a separate question. – JasonMArcher Mar 26 '14 at 16:53
  • @JasonMArcher It really does. It is a different syntax that is not reflected in the other question's answer as thorough as it is – ford prefect Jun 03 '14 at 19:14
  • After I made my comment, I added to the answer in the referenced thread. So it does now. – JasonMArcher Jun 03 '14 at 19:18

1 Answers1

7

To run in debug mode with the http listener on port 8991, run:

play debug "run 8991"
James Ward
  • 28,966
  • 9
  • 47
  • 79