Skip to content

Instantly share code, notes, and snippets.

@Felipe00
Forked from ntenisOT/playintellijidea.md
Created October 29, 2015 21:12
Show Gist options
  • Save Felipe00/ae12798e4991fbf36667 to your computer and use it in GitHub Desktop.
Save Felipe00/ae12798e4991fbf36667 to your computer and use it in GitHub Desktop.
Build and Debug Play 2.3+ using IntellijIdea 14

Download and Installation

Download Play Framework:

 https://www.playframework.com/download

Execute:

./activator ( Mac )

Run:

activator.bat ( Windows )

After a while (and a lot of downloads), new browser window will open pointing at:

http://127.0.0.1:8888/home ( Typesafe Activator Home Page)

Select 'Seeds' and then choose the type of your project:

e.g. Play Java Seed

And select a directory for your newly created project.

Open your terminal and cd to the newly created directory. Run the following command in order to create the required files for IntellijIdea 14.

./activator idea

Open your copy of IntellijIdea, select 'Open Project' and choose the directory of your newly created project. IntellijIdea 14 will be able to open the project and you are ready to go.

Debugging a Play 2.3+ Application ( while the Play plugin (Scala Plugin) is not working)

Open a regular terminal sessions or use IntellijIdea's Terminal.

Run the following command.

./activator -jvm-debug 9999

Wait until the project is compiled and then run:

[play-java] $ run

Now you will be able to see your application running at:

http://localhost:9000

Create a new 'Remote Debug' configuration (IntellijIdea 14)

Alt text

Alt text

IntellijIdea 14 Preview Edition

Use the "Scala Plugin" and create a new "Play 2" run configuration

@Felipe00
Copy link
Author

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment