Play2.0 + Eclipse
ã»ã¾ãã¯PJä½æ
play new æ°è¦PJå
ã»playã³ãã³ãã§PJã¤ã³ã¹ã¿ã³ã¹ï¼ãèµ·å
cd æ°è¦PJå
play
ã»ã¨ããããèµ·å
ãã©ã¦ã¶ã§localhost:9000ã«ã¢ã¯ã»ã¹ã
[æ°è¦PJå] $ run
ctrl-d ã§åæ¢ã
ãµã¼ãã¼ã®èµ·åãã¼ããå¤æ´ããã«ã¯ã
conf/application.confããªã¨æã£ããã©ãã¡ãã£ã¨è¦å½ãããããã¨ã§èª¿æ»ã
ã»Eclipseããã¸ã§ã¯ããä½æ
Eclipseããå¤é¨PJã®ã¤ã³ãã¼ããé¸ã¶ã
[æ°è¦PJå] $ eclipsify
ã»Eclipseãããããã°ããã«ã¯ãPlayã®ãããã°å®è¡ã¢ã¼ãã§å®è¡ããã¦ããã¦ã
Eclipseãããªã¢ã¼ããããã°ã¨ãã¦Playã®ããã»ã¹ã«ã¢ã¿ããããã
Eclipseã«ã¦ãããã°å®è¡ã®Configãä½ãã
Debug Configuration -> Remote Java Application -> new
è¨å®ãã¤ã¢ãã°ã«ã¦ã
ãConnection Property -> port -> 9999
ã«è¨å®ããã
ã¿ã¼ããã«ã«ã¦ãPlayããããã°ã¢ã¼ãã§å®è¡ãã¦ãã
play debug run
ãã®ç¶æ ã§Eclipseãããããã°å®è¡ãè¡ãã